diff --git a/base/src/org/compiere/model/I_AD_PrintFormat.java b/base/src/org/compiere/model/I_AD_PrintFormat.java index 2ce3e23832..1ae67e3891 100644 --- a/base/src/org/compiere/model/I_AD_PrintFormat.java +++ b/base/src/org/compiere/model/I_AD_PrintFormat.java @@ -5,21 +5,21 @@ * Copyright (C) Trifon Trifonov. * * Copyright (C) Contributors * * * - * This program is free software; + * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * - * as published by the Free Software Foundation; + * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; + * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * - * along with this program; + * along with this program; if not, write to the Free Software * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * * MA 02110-1301, USA. * @@ -30,273 +30,289 @@ * Sponsors: * * - Company (http://www.site.com) * **********************************************************************/ -package org.compiere.model; - -import java.util.*; -import java.sql.Timestamp; -import java.math.*; -import org.compiere.util.*; +package org.compiere.model; - /** 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 -{ +import java.math.BigDecimal; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for AD_PrintFormat + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 + */ +public interface I_AD_PrintFormat +{ /** TableName=AD_PrintFormat */ - public static final String Table_Name = "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); + public static final int Table_ID = MTable.getTable_ID(Table_Name); - KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); /** AccessLevel = 7 - System - Client - Org */ - BigDecimal accessLevel = new BigDecimal(7); + BigDecimal accessLevel = BigDecimal.valueOf(7); /** Load Meta Data */ /** Column name AD_PrintColor_ID */ - public static final String COLUMNNAME_AD_PrintColor_ID = "AD_PrintColor_ID"; + public static final String COLUMNNAME_AD_PrintColor_ID = "AD_PrintColor_ID"; /** Set Print Color. - * Color used for printing and display + * Color used for printing and display */ - public void setAD_PrintColor_ID (int AD_PrintColor_ID); + public void setAD_PrintColor_ID (int AD_PrintColor_ID); /** Get Print Color. - * Color used for printing and display + * Color used for printing and display */ - public int getAD_PrintColor_ID(); + public int getAD_PrintColor_ID(); - public I_AD_PrintColor getI_AD_PrintColor() throws Exception; + public I_AD_PrintColor getAD_PrintColor() throws Exception; /** Column name AD_PrintFont_ID */ - public static final String COLUMNNAME_AD_PrintFont_ID = "AD_PrintFont_ID"; + public static final String COLUMNNAME_AD_PrintFont_ID = "AD_PrintFont_ID"; /** Set Print Font. - * Maintain Print Font + * Maintain Print Font */ - public void setAD_PrintFont_ID (int AD_PrintFont_ID); + public void setAD_PrintFont_ID (int AD_PrintFont_ID); /** Get Print Font. - * Maintain Print Font + * Maintain Print Font */ - public int getAD_PrintFont_ID(); + public int getAD_PrintFont_ID(); - public I_AD_PrintFont getI_AD_PrintFont() throws Exception; + public I_AD_PrintFont getAD_PrintFont() throws Exception; /** Column name AD_PrintFormat_ID */ - public static final String COLUMNNAME_AD_PrintFormat_ID = "AD_PrintFormat_ID"; + public static final String COLUMNNAME_AD_PrintFormat_ID = "AD_PrintFormat_ID"; /** Set Print Format. - * Data Print Format + * Data Print Format */ - public void setAD_PrintFormat_ID (int AD_PrintFormat_ID); + public void setAD_PrintFormat_ID (int AD_PrintFormat_ID); /** Get Print Format. - * Data Print Format + * Data Print Format */ - public int getAD_PrintFormat_ID(); + public int getAD_PrintFormat_ID(); /** Column name AD_PrintPaper_ID */ - public static final String COLUMNNAME_AD_PrintPaper_ID = "AD_PrintPaper_ID"; + public static final String COLUMNNAME_AD_PrintPaper_ID = "AD_PrintPaper_ID"; /** Set Print Paper. - * Printer paper definition + * Printer paper definition */ - public void setAD_PrintPaper_ID (int AD_PrintPaper_ID); + public void setAD_PrintPaper_ID (int AD_PrintPaper_ID); /** Get Print Paper. - * Printer paper definition + * Printer paper definition */ - public int getAD_PrintPaper_ID(); + public int getAD_PrintPaper_ID(); - public I_AD_PrintPaper getI_AD_PrintPaper() throws Exception; + public I_AD_PrintPaper getAD_PrintPaper() throws Exception; /** Column name AD_PrintTableFormat_ID */ - public static final String COLUMNNAME_AD_PrintTableFormat_ID = "AD_PrintTableFormat_ID"; + public static final String COLUMNNAME_AD_PrintTableFormat_ID = "AD_PrintTableFormat_ID"; /** Set Print Table Format. - * Table Format in Reports + * Table Format in Reports */ - public void setAD_PrintTableFormat_ID (int AD_PrintTableFormat_ID); + public void setAD_PrintTableFormat_ID (int AD_PrintTableFormat_ID); /** Get Print Table Format. - * Table Format in Reports + * Table Format in Reports */ - public int getAD_PrintTableFormat_ID(); + public int getAD_PrintTableFormat_ID(); - public I_AD_PrintTableFormat getI_AD_PrintTableFormat() throws Exception; + public I_AD_PrintTableFormat getAD_PrintTableFormat() throws Exception; /** Column name AD_ReportView_ID */ - public static final String COLUMNNAME_AD_ReportView_ID = "AD_ReportView_ID"; + public static final String COLUMNNAME_AD_ReportView_ID = "AD_ReportView_ID"; /** Set Report View. - * View used to generate this report + * View used to generate this report */ - public void setAD_ReportView_ID (int AD_ReportView_ID); + public void setAD_ReportView_ID (int AD_ReportView_ID); /** Get Report View. - * View used to generate this report + * View used to generate this report */ - public int getAD_ReportView_ID(); + public int getAD_ReportView_ID(); - public I_AD_ReportView getI_AD_ReportView() throws Exception; + public I_AD_ReportView getAD_ReportView() throws Exception; /** Column name AD_Table_ID */ - public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; /** Set Table. - * Database Table information + * Database Table information */ - public void setAD_Table_ID (int AD_Table_ID); + public void setAD_Table_ID (int AD_Table_ID); /** Get Table. - * Database Table information + * Database Table information */ - public int getAD_Table_ID(); + public int getAD_Table_ID(); - public I_AD_Table getI_AD_Table() throws Exception; + public I_AD_Table getAD_Table() throws Exception; + + /** Column name Args */ + public static final String COLUMNNAME_Args = "Args"; + + /** Set Args */ + public void setArgs (String Args); + + /** Get Args */ + public String getArgs(); + + /** Column name ClassName */ + public static final String COLUMNNAME_ClassName = "ClassName"; + + /** Set ClassName */ + public void setClassName (String ClassName); + + /** Get ClassName */ + public String getClassName(); /** Column name CreateCopy */ - public static final String COLUMNNAME_CreateCopy = "CreateCopy"; + public static final String COLUMNNAME_CreateCopy = "CreateCopy"; /** Set Create Copy */ - public void setCreateCopy (String CreateCopy); + public void setCreateCopy (String CreateCopy); /** Get Create Copy */ - public String getCreateCopy(); + public String getCreateCopy(); /** Column name Description */ - public static final String COLUMNNAME_Description = "Description"; + public static final String COLUMNNAME_Description = "Description"; /** Set Description. - * Optional short description of the record + * Optional short description of the record */ - public void setDescription (String Description); + public void setDescription (String Description); /** Get Description. - * Optional short description of the record + * Optional short description of the record */ - public String getDescription(); + public String getDescription(); /** Column name FooterMargin */ - public static final String COLUMNNAME_FooterMargin = "FooterMargin"; + public static final String COLUMNNAME_FooterMargin = "FooterMargin"; /** Set Footer Margin. - * Margin of the Footer in 1/72 of an inch + * Margin of the Footer in 1/72 of an inch */ - public void setFooterMargin (int FooterMargin); + public void setFooterMargin (int FooterMargin); /** Get Footer Margin. - * Margin of the Footer in 1/72 of an inch + * Margin of the Footer in 1/72 of an inch */ - public int getFooterMargin(); + public int getFooterMargin(); /** Column name HeaderMargin */ - public static final String COLUMNNAME_HeaderMargin = "HeaderMargin"; + public static final String COLUMNNAME_HeaderMargin = "HeaderMargin"; /** Set Header Margin. - * Margin of the Header in 1/72 of an inch + * Margin of the Header in 1/72 of an inch */ - public void setHeaderMargin (int HeaderMargin); + public void setHeaderMargin (int HeaderMargin); /** Get Header Margin. - * Margin of the Header in 1/72 of an inch + * Margin of the Header in 1/72 of an inch */ - public int getHeaderMargin(); + public int getHeaderMargin(); /** Column name IsDefault */ - public static final String COLUMNNAME_IsDefault = "IsDefault"; + public static final String COLUMNNAME_IsDefault = "IsDefault"; /** Set Default. - * Default value + * Default value */ - public void setIsDefault (boolean IsDefault); + public void setIsDefault (boolean IsDefault); /** Get Default. - * Default value + * Default value */ - public boolean isDefault(); + public boolean isDefault(); /** Column name IsForm */ - public static final String COLUMNNAME_IsForm = "IsForm"; + public static final String COLUMNNAME_IsForm = "IsForm"; /** Set Form. - * If Selected, a Form is printed, if not selected a columnar List report + * If Selected, a Form is printed, if not selected a columnar List report */ - public void setIsForm (boolean IsForm); + public void setIsForm (boolean IsForm); /** Get Form. - * If Selected, a Form is printed, if not selected a columnar List report + * If Selected, a Form is printed, if not selected a columnar List report */ - public boolean isForm(); + public boolean isForm(); /** Column name IsStandardHeaderFooter */ - public static final String COLUMNNAME_IsStandardHeaderFooter = "IsStandardHeaderFooter"; + public static final String COLUMNNAME_IsStandardHeaderFooter = "IsStandardHeaderFooter"; /** Set Standard Header/Footer. - * The standard Header and Footer is used + * The standard Header and Footer is used */ - public void setIsStandardHeaderFooter (boolean IsStandardHeaderFooter); + public void setIsStandardHeaderFooter (boolean IsStandardHeaderFooter); /** Get Standard Header/Footer. - * The standard Header and Footer is used + * The standard Header and Footer is used */ - public boolean isStandardHeaderFooter(); + public boolean isStandardHeaderFooter(); /** Column name IsTableBased */ - public static final String COLUMNNAME_IsTableBased = "IsTableBased"; + public static final String COLUMNNAME_IsTableBased = "IsTableBased"; /** Set Table Based. - * Table based List Reporting + * Table based List Reporting */ - public void setIsTableBased (boolean IsTableBased); + public void setIsTableBased (boolean IsTableBased); /** Get Table Based. - * Table based List Reporting + * Table based List Reporting */ - public boolean isTableBased(); + public boolean isTableBased(); /** Column name JasperProcess_ID */ - public static final String COLUMNNAME_JasperProcess_ID = "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 + * The Jasper Process used by the printengine if any process defined */ - public void setJasperProcess_ID (int JasperProcess_ID); + public void setJasperProcess_ID (int JasperProcess_ID); /** Get Jasper Process. - * The Jasper Process used by the printengine if any process defined + * The Jasper Process used by the printengine if any process defined */ - public int getJasperProcess_ID(); + public int getJasperProcess_ID(); /** Column name Name */ - public static final String COLUMNNAME_Name = "Name"; + public static final String COLUMNNAME_Name = "Name"; /** Set Name. - * Alphanumeric identifier of the entity + * Alphanumeric identifier of the entity */ - public void setName (String Name); + public void setName (String Name); /** Get Name. - * Alphanumeric identifier of the entity + * Alphanumeric identifier of the entity */ - public String getName(); + public String getName(); /** Column name PrinterName */ - public static final String COLUMNNAME_PrinterName = "PrinterName"; + public static final String COLUMNNAME_PrinterName = "PrinterName"; /** Set Printer Name. - * Name of the Printer + * Name of the Printer */ - public void setPrinterName (String PrinterName); + public void setPrinterName (String PrinterName); /** Get Printer Name. - * Name of the Printer + * Name of the Printer */ - public String getPrinterName(); -} + public String getPrinterName(); +} diff --git a/base/src/org/compiere/model/I_AD_Role.java b/base/src/org/compiere/model/I_AD_Role.java index 26d69de7e1..4495228714 100644 --- a/base/src/org/compiere/model/I_AD_Role.java +++ b/base/src/org/compiere/model/I_AD_Role.java @@ -5,21 +5,21 @@ * Copyright (C) Trifon Trifonov. * * Copyright (C) Contributors * * * - * This program is free software; + * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * - * as published by the Free Software Foundation; + * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; + * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * - * along with this program; + * along with this program; if not, write to the Free Software * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * * MA 02110-1301, USA. * @@ -30,444 +30,451 @@ * Sponsors: * * - Company (http://www.site.com) * **********************************************************************/ -package org.compiere.model; - -import java.util.*; -import java.sql.Timestamp; -import java.math.*; -import org.compiere.util.*; +package org.compiere.model; - /** 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 -{ +import java.math.BigDecimal; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for AD_Role + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 + */ +public interface I_AD_Role +{ /** TableName=AD_Role */ - public static final String Table_Name = "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); + public static final int Table_ID = MTable.getTable_ID(Table_Name); - KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); /** AccessLevel = 6 - System - Client */ - BigDecimal accessLevel = new BigDecimal(6); + BigDecimal accessLevel = BigDecimal.valueOf(6); /** Load Meta Data */ /** Column name AD_Role_ID */ - public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; + public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; /** Set Role. - * Responsibility Role + * Responsibility Role */ - public void setAD_Role_ID (int AD_Role_ID); + public void setAD_Role_ID (int AD_Role_ID); /** Get Role. - * Responsibility Role + * Responsibility Role */ - public int getAD_Role_ID(); + public int getAD_Role_ID(); /** Column name AD_Tree_Menu_ID */ - public static final String COLUMNNAME_AD_Tree_Menu_ID = "AD_Tree_Menu_ID"; + public static final String COLUMNNAME_AD_Tree_Menu_ID = "AD_Tree_Menu_ID"; /** Set Menu Tree. - * Tree of the menu + * Tree of the menu */ - public void setAD_Tree_Menu_ID (int AD_Tree_Menu_ID); + public void setAD_Tree_Menu_ID (int AD_Tree_Menu_ID); /** Get Menu Tree. - * Tree of the menu + * Tree of the menu */ - public int getAD_Tree_Menu_ID(); + 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"; + public static final String COLUMNNAME_AD_Tree_Org_ID = "AD_Tree_Org_ID"; /** Set Organization Tree. - * Tree to determine organizational hierarchy + * Tree to determine organizational hierarchy */ - public void setAD_Tree_Org_ID (int AD_Tree_Org_ID); + public void setAD_Tree_Org_ID (int AD_Tree_Org_ID); /** Get Organization Tree. - * Tree to determine organizational hierarchy + * Tree to determine organizational hierarchy */ - public int getAD_Tree_Org_ID(); + public int getAD_Tree_Org_ID(); /** Column name Allow_Info_Account */ - public static final String COLUMNNAME_Allow_Info_Account = "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); + public void setAllow_Info_Account (boolean Allow_Info_Account); /** Get Allow Info Account */ - public boolean isAllow_Info_Account(); + public boolean isAllow_Info_Account(); /** Column name Allow_Info_Asset */ - public static final String COLUMNNAME_Allow_Info_Asset = "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); + public void setAllow_Info_Asset (boolean Allow_Info_Asset); /** Get Allow Info Asset */ - public boolean isAllow_Info_Asset(); + public boolean isAllow_Info_Asset(); /** Column name Allow_Info_BPartner */ - public static final String COLUMNNAME_Allow_Info_BPartner = "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); + public void setAllow_Info_BPartner (boolean Allow_Info_BPartner); /** Get Allow Info BPartner */ - public boolean isAllow_Info_BPartner(); + public boolean isAllow_Info_BPartner(); /** Column name Allow_Info_CashJournal */ - public static final String COLUMNNAME_Allow_Info_CashJournal = "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); + public void setAllow_Info_CashJournal (boolean Allow_Info_CashJournal); /** Get Allow Info CashJournal */ - public boolean isAllow_Info_CashJournal(); + public boolean isAllow_Info_CashJournal(); /** Column name Allow_Info_InOut */ - public static final String COLUMNNAME_Allow_Info_InOut = "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); + public void setAllow_Info_InOut (boolean Allow_Info_InOut); /** Get Allow Info InOut */ - public boolean isAllow_Info_InOut(); + public boolean isAllow_Info_InOut(); /** Column name Allow_Info_Invoice */ - public static final String COLUMNNAME_Allow_Info_Invoice = "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); + public void setAllow_Info_Invoice (boolean Allow_Info_Invoice); /** Get Allow Info Invoice */ - public boolean isAllow_Info_Invoice(); + public boolean isAllow_Info_Invoice(); /** Column name Allow_Info_Order */ - public static final String COLUMNNAME_Allow_Info_Order = "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); + public void setAllow_Info_Order (boolean Allow_Info_Order); /** Get Allow Info Order */ - public boolean isAllow_Info_Order(); + public boolean isAllow_Info_Order(); /** Column name Allow_Info_Payment */ - public static final String COLUMNNAME_Allow_Info_Payment = "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); + public void setAllow_Info_Payment (boolean Allow_Info_Payment); /** Get Allow Info Payment */ - public boolean isAllow_Info_Payment(); + public boolean isAllow_Info_Payment(); /** Column name Allow_Info_Product */ - public static final String COLUMNNAME_Allow_Info_Product = "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); + public void setAllow_Info_Product (boolean Allow_Info_Product); /** Get Allow Info Product */ - public boolean isAllow_Info_Product(); + public boolean isAllow_Info_Product(); /** Column name Allow_Info_Resource */ - public static final String COLUMNNAME_Allow_Info_Resource = "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); + public void setAllow_Info_Resource (boolean Allow_Info_Resource); /** Get Allow Info Resource */ - public boolean isAllow_Info_Resource(); + public boolean isAllow_Info_Resource(); /** Column name Allow_Info_Schedule */ - public static final String COLUMNNAME_Allow_Info_Schedule = "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); + public void setAllow_Info_Schedule (boolean Allow_Info_Schedule); /** Get Allow Info Schedule */ - public boolean isAllow_Info_Schedule(); + public boolean isAllow_Info_Schedule(); /** Column name AmtApproval */ - public static final String COLUMNNAME_AmtApproval = "AmtApproval"; + public static final String COLUMNNAME_AmtApproval = "AmtApproval"; /** Set Approval Amount. - * The approval amount limit for this role + * The approval amount limit for this role */ - public void setAmtApproval (BigDecimal AmtApproval); + public void setAmtApproval (BigDecimal AmtApproval); /** Get Approval Amount. - * The approval amount limit for this role + * The approval amount limit for this role */ - public BigDecimal getAmtApproval(); + public BigDecimal getAmtApproval(); /** Column name C_Currency_ID */ - public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; /** Set Currency. - * The Currency for this record + * The Currency for this record */ - public void setC_Currency_ID (int C_Currency_ID); + public void setC_Currency_ID (int C_Currency_ID); /** Get Currency. - * The Currency for this record + * The Currency for this record */ - public int getC_Currency_ID(); + public int getC_Currency_ID(); - public I_C_Currency getI_C_Currency() throws Exception; + public I_C_Currency getC_Currency() throws Exception; /** Column name ConfirmQueryRecords */ - public static final String COLUMNNAME_ConfirmQueryRecords = "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) + * Require Confirmation if more records will be returned by the query (If not defined 500) */ - public void setConfirmQueryRecords (int ConfirmQueryRecords); + public void setConfirmQueryRecords (int ConfirmQueryRecords); /** Get Confirm Query Records. - * Require Confirmation if more records will be returned by the query (If not defined 500) + * Require Confirmation if more records will be returned by the query (If not defined 500) */ - public int getConfirmQueryRecords(); + public int getConfirmQueryRecords(); /** Column name ConnectionProfile */ - public static final String COLUMNNAME_ConnectionProfile = "ConnectionProfile"; + public static final String COLUMNNAME_ConnectionProfile = "ConnectionProfile"; /** Set Connection Profile. - * How a Java Client connects to the server(s) + * How a Java Client connects to the server(s) */ - public void setConnectionProfile (String ConnectionProfile); + public void setConnectionProfile (String ConnectionProfile); /** Get Connection Profile. - * How a Java Client connects to the server(s) + * How a Java Client connects to the server(s) */ - public String getConnectionProfile(); + public String getConnectionProfile(); /** Column name Description */ - public static final String COLUMNNAME_Description = "Description"; + public static final String COLUMNNAME_Description = "Description"; /** Set Description. - * Optional short description of the record + * Optional short description of the record */ - public void setDescription (String Description); + public void setDescription (String Description); /** Get Description. - * Optional short description of the record + * Optional short description of the record */ - public String getDescription(); + public String getDescription(); /** Column name IsAccessAllOrgs */ - public static final String COLUMNNAME_IsAccessAllOrgs = "IsAccessAllOrgs"; + public static final String COLUMNNAME_IsAccessAllOrgs = "IsAccessAllOrgs"; /** Set Access all Orgs. - * Access all Organizations (no org access control) of the client + * Access all Organizations (no org access control) of the client */ - public void setIsAccessAllOrgs (boolean IsAccessAllOrgs); + public void setIsAccessAllOrgs (boolean IsAccessAllOrgs); /** Get Access all Orgs. - * Access all Organizations (no org access control) of the client + * Access all Organizations (no org access control) of the client */ - public boolean isAccessAllOrgs(); + public boolean isAccessAllOrgs(); /** Column name IsCanApproveOwnDoc */ - public static final String COLUMNNAME_IsCanApproveOwnDoc = "IsCanApproveOwnDoc"; + public static final String COLUMNNAME_IsCanApproveOwnDoc = "IsCanApproveOwnDoc"; /** Set Approve own Documents. - * Users with this role can approve their own documents + * Users with this role can approve their own documents */ - public void setIsCanApproveOwnDoc (boolean IsCanApproveOwnDoc); + public void setIsCanApproveOwnDoc (boolean IsCanApproveOwnDoc); /** Get Approve own Documents. - * Users with this role can approve their own documents + * Users with this role can approve their own documents */ - public boolean isCanApproveOwnDoc(); + public boolean isCanApproveOwnDoc(); /** Column name IsCanExport */ - public static final String COLUMNNAME_IsCanExport = "IsCanExport"; + public static final String COLUMNNAME_IsCanExport = "IsCanExport"; /** Set Can Export. - * Users with this role can export data + * Users with this role can export data */ - public void setIsCanExport (boolean IsCanExport); + public void setIsCanExport (boolean IsCanExport); /** Get Can Export. - * Users with this role can export data + * Users with this role can export data */ - public boolean isCanExport(); + public boolean isCanExport(); /** Column name IsCanReport */ - public static final String COLUMNNAME_IsCanReport = "IsCanReport"; + public static final String COLUMNNAME_IsCanReport = "IsCanReport"; /** Set Can Report. - * Users with this role can create reports + * Users with this role can create reports */ - public void setIsCanReport (boolean IsCanReport); + public void setIsCanReport (boolean IsCanReport); /** Get Can Report. - * Users with this role can create reports + * Users with this role can create reports */ - public boolean isCanReport(); + public boolean isCanReport(); /** Column name IsChangeLog */ - public static final String COLUMNNAME_IsChangeLog = "IsChangeLog"; + public static final String COLUMNNAME_IsChangeLog = "IsChangeLog"; /** Set Maintain Change Log. - * Maintain a log of changes + * Maintain a log of changes */ - public void setIsChangeLog (boolean IsChangeLog); + public void setIsChangeLog (boolean IsChangeLog); /** Get Maintain Change Log. - * Maintain a log of changes + * Maintain a log of changes */ - public boolean isChangeLog(); + public boolean isChangeLog(); /** Column name IsManual */ - public static final String COLUMNNAME_IsManual = "IsManual"; + public static final String COLUMNNAME_IsManual = "IsManual"; /** Set Manual. - * This is a manual process + * This is a manual process */ - public void setIsManual (boolean IsManual); + public void setIsManual (boolean IsManual); /** Get Manual. - * This is a manual process + * This is a manual process */ - public boolean isManual(); + public boolean isManual(); /** Column name IsPersonalAccess */ - public static final String COLUMNNAME_IsPersonalAccess = "IsPersonalAccess"; + public static final String COLUMNNAME_IsPersonalAccess = "IsPersonalAccess"; /** Set Personal Access. - * Allow access to all personal records + * Allow access to all personal records */ - public void setIsPersonalAccess (boolean IsPersonalAccess); + public void setIsPersonalAccess (boolean IsPersonalAccess); /** Get Personal Access. - * Allow access to all personal records + * Allow access to all personal records */ - public boolean isPersonalAccess(); + public boolean isPersonalAccess(); /** Column name IsPersonalLock */ - public static final String COLUMNNAME_IsPersonalLock = "IsPersonalLock"; + public static final String COLUMNNAME_IsPersonalLock = "IsPersonalLock"; /** Set Personal Lock. - * Allow users with role to lock access to personal records + * Allow users with role to lock access to personal records */ - public void setIsPersonalLock (boolean IsPersonalLock); + public void setIsPersonalLock (boolean IsPersonalLock); /** Get Personal Lock. - * Allow users with role to lock access to personal records + * Allow users with role to lock access to personal records */ - public boolean isPersonalLock(); + public boolean isPersonalLock(); /** Column name IsShowAcct */ - public static final String COLUMNNAME_IsShowAcct = "IsShowAcct"; + public static final String COLUMNNAME_IsShowAcct = "IsShowAcct"; /** Set Show Accounting. - * Users with this role can see accounting information + * Users with this role can see accounting information */ - public void setIsShowAcct (boolean IsShowAcct); + public void setIsShowAcct (boolean IsShowAcct); /** Get Show Accounting. - * Users with this role can see accounting information + * Users with this role can see accounting information */ - public boolean isShowAcct(); + public boolean isShowAcct(); /** Column name IsUseUserOrgAccess */ - public static final String COLUMNNAME_IsUseUserOrgAccess = "IsUseUserOrgAccess"; + public static final String COLUMNNAME_IsUseUserOrgAccess = "IsUseUserOrgAccess"; /** Set Use User Org Access. - * Use Org Access defined by user instead of Role Org Access + * Use Org Access defined by user instead of Role Org Access */ - public void setIsUseUserOrgAccess (boolean IsUseUserOrgAccess); + public void setIsUseUserOrgAccess (boolean IsUseUserOrgAccess); /** Get Use User Org Access. - * Use Org Access defined by user instead of Role Org Access + * Use Org Access defined by user instead of Role Org Access */ - public boolean isUseUserOrgAccess(); + public boolean isUseUserOrgAccess(); /** Column name MaxQueryRecords */ - public static final String COLUMNNAME_MaxQueryRecords = "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 + * 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); + 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 + * If defined, you cannot query more records as defined - the query criteria needs to be changed to query less records */ - public int getMaxQueryRecords(); + public int getMaxQueryRecords(); /** Column name Name */ - public static final String COLUMNNAME_Name = "Name"; + public static final String COLUMNNAME_Name = "Name"; /** Set Name. - * Alphanumeric identifier of the entity + * Alphanumeric identifier of the entity */ - public void setName (String Name); + public void setName (String Name); /** Get Name. - * Alphanumeric identifier of the entity + * Alphanumeric identifier of the entity */ - public String getName(); + public String getName(); /** Column name OverwritePriceLimit */ - public static final String COLUMNNAME_OverwritePriceLimit = "OverwritePriceLimit"; + public static final String COLUMNNAME_OverwritePriceLimit = "OverwritePriceLimit"; /** Set Overwrite Price Limit. - * Overwrite Price Limit if the Price List enforces the Price Limit + * Overwrite Price Limit if the Price List enforces the Price Limit */ - public void setOverwritePriceLimit (boolean OverwritePriceLimit); + public void setOverwritePriceLimit (boolean OverwritePriceLimit); /** Get Overwrite Price Limit. - * Overwrite Price Limit if the Price List enforces the Price Limit + * Overwrite Price Limit if the Price List enforces the Price Limit */ - public boolean isOverwritePriceLimit(); + public boolean isOverwritePriceLimit(); /** Column name PreferenceType */ - public static final String COLUMNNAME_PreferenceType = "PreferenceType"; + public static final String COLUMNNAME_PreferenceType = "PreferenceType"; /** Set Preference Level. - * Determines what preferences the user can set + * Determines what preferences the user can set */ - public void setPreferenceType (String PreferenceType); + public void setPreferenceType (String PreferenceType); /** Get Preference Level. - * Determines what preferences the user can set + * Determines what preferences the user can set */ - public String getPreferenceType(); + public String getPreferenceType(); /** Column name Supervisor_ID */ - public static final String COLUMNNAME_Supervisor_ID = "Supervisor_ID"; + public static final String COLUMNNAME_Supervisor_ID = "Supervisor_ID"; /** Set Supervisor. - * Supervisor for this user/organization - used for escalation and approval + * Supervisor for this user/organization - used for escalation and approval */ - public void setSupervisor_ID (int Supervisor_ID); + public void setSupervisor_ID (int Supervisor_ID); /** Get Supervisor. - * Supervisor for this user/organization - used for escalation and approval + * Supervisor for this user/organization - used for escalation and approval */ - public int getSupervisor_ID(); + public int getSupervisor_ID(); + + /** Column name UserDiscount */ + public static final String COLUMNNAME_UserDiscount = "UserDiscount"; + + /** Set UserDiscount */ + public void setUserDiscount (BigDecimal UserDiscount); + + /** Get UserDiscount */ + public BigDecimal getUserDiscount(); /** Column name UserLevel */ - public static final String COLUMNNAME_UserLevel = "UserLevel"; + public static final String COLUMNNAME_UserLevel = "UserLevel"; /** Set User Level. - * System Client Organization + * System Client Organization */ - public void setUserLevel (String UserLevel); + public void setUserLevel (String UserLevel); /** Get User Level. - * System Client Organization + * System Client Organization */ - public String getUserLevel(); -} + public String getUserLevel(); +} diff --git a/base/src/org/compiere/model/I_AD_User.java b/base/src/org/compiere/model/I_AD_User.java index e5f2f3e05c..edd30ee833 100644 --- a/base/src/org/compiere/model/I_AD_User.java +++ b/base/src/org/compiere/model/I_AD_User.java @@ -5,21 +5,21 @@ * Copyright (C) Trifon Trifonov. * * Copyright (C) Contributors * * * - * This program is free software; + * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * - * as published by the Free Software Foundation; + * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; + * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * - * along with this program; + * along with this program; if not, write to the Free Software * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * * MA 02110-1301, USA. * @@ -30,410 +30,418 @@ * Sponsors: * * - Company (http://www.site.com) * **********************************************************************/ -package org.compiere.model; - -import java.util.*; -import java.sql.Timestamp; -import java.math.*; -import org.compiere.util.*; +package org.compiere.model; - /** 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 -{ +import java.math.BigDecimal; +import java.sql.Timestamp; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for AD_User + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 + */ +public interface I_AD_User +{ /** TableName=AD_User */ - public static final String Table_Name = "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); + public static final int Table_ID = MTable.getTable_ID(Table_Name); - KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); /** AccessLevel = 7 - System - Client - Org */ - BigDecimal accessLevel = new BigDecimal(7); + BigDecimal accessLevel = BigDecimal.valueOf(7); /** Load Meta Data */ /** Column name AD_OrgTrx_ID */ - public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; /** Set Trx Organization. - * Performing or initiating organization + * Performing or initiating organization */ - public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); /** Get Trx Organization. - * Performing or initiating organization + * Performing or initiating organization */ - public int getAD_OrgTrx_ID(); + public int getAD_OrgTrx_ID(); /** Column name AD_User_ID */ - public static final String COLUMNNAME_AD_User_ID = "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 + * User within the system - Internal or Business Partner Contact */ - public void setAD_User_ID (int AD_User_ID); + public void setAD_User_ID (int AD_User_ID); /** Get User/Contact. - * User within the system - Internal or Business Partner Contact + * User within the system - Internal or Business Partner Contact */ - public int getAD_User_ID(); + public int getAD_User_ID(); /** Column name Birthday */ - public static final String COLUMNNAME_Birthday = "Birthday"; + public static final String COLUMNNAME_Birthday = "Birthday"; /** Set Birthday. - * Birthday or Anniversary day + * Birthday or Anniversary day */ - public void setBirthday (Timestamp Birthday); + public void setBirthday (Timestamp Birthday); /** Get Birthday. - * Birthday or Anniversary day + * Birthday or Anniversary day */ - public Timestamp getBirthday(); + public Timestamp getBirthday(); /** Column name C_BPartner_ID */ - public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; /** Set Business Partner . - * Identifies a Business Partner + * Identifies a Business Partner */ - public void setC_BPartner_ID (int C_BPartner_ID); + public void setC_BPartner_ID (int C_BPartner_ID); /** Get Business Partner . - * Identifies a Business Partner + * Identifies a Business Partner */ - public int getC_BPartner_ID(); + public int getC_BPartner_ID(); /** Column name C_BPartner_Location_ID */ - public static final String COLUMNNAME_C_BPartner_Location_ID = "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 + * Identifies the (ship to) address for this Business Partner */ - public void setC_BPartner_Location_ID (int C_BPartner_Location_ID); + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID); /** Get Partner Location. - * Identifies the (ship to) address for this Business Partner + * Identifies the (ship to) address for this Business Partner */ - public int getC_BPartner_Location_ID(); + public int getC_BPartner_Location_ID(); - public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception; + public I_C_BPartner_Location getC_BPartner_Location() throws Exception; /** Column name C_Greeting_ID */ - public static final String COLUMNNAME_C_Greeting_ID = "C_Greeting_ID"; + public static final String COLUMNNAME_C_Greeting_ID = "C_Greeting_ID"; /** Set Greeting. - * Greeting to print on correspondence + * Greeting to print on correspondence */ - public void setC_Greeting_ID (int C_Greeting_ID); + public void setC_Greeting_ID (int C_Greeting_ID); /** Get Greeting. - * Greeting to print on correspondence + * Greeting to print on correspondence */ - public int getC_Greeting_ID(); + public int getC_Greeting_ID(); - public I_C_Greeting getI_C_Greeting() throws Exception; + public I_C_Greeting getC_Greeting() throws Exception; /** Column name C_Job_ID */ - public static final String COLUMNNAME_C_Job_ID = "C_Job_ID"; + public static final String COLUMNNAME_C_Job_ID = "C_Job_ID"; /** Set Position. - * Job Position + * Job Position */ - public void setC_Job_ID (int C_Job_ID); + public void setC_Job_ID (int C_Job_ID); /** Get Position. - * Job Position + * Job Position */ - public int getC_Job_ID(); + public int getC_Job_ID(); - public I_C_Job getI_C_Job() throws Exception; + public I_C_Job getC_Job() throws Exception; /** Column name Comments */ - public static final String COLUMNNAME_Comments = "Comments"; + public static final String COLUMNNAME_Comments = "Comments"; /** Set Comments. - * Comments or additional information + * Comments or additional information */ - public void setComments (String Comments); + public void setComments (String Comments); /** Get Comments. - * Comments or additional information + * Comments or additional information */ - public String getComments(); + public String getComments(); /** Column name ConnectionProfile */ - public static final String COLUMNNAME_ConnectionProfile = "ConnectionProfile"; + public static final String COLUMNNAME_ConnectionProfile = "ConnectionProfile"; /** Set Connection Profile. - * How a Java Client connects to the server(s) + * How a Java Client connects to the server(s) */ - public void setConnectionProfile (String ConnectionProfile); + public void setConnectionProfile (String ConnectionProfile); /** Get Connection Profile. - * How a Java Client connects to the server(s) + * How a Java Client connects to the server(s) */ - public String getConnectionProfile(); + public String getConnectionProfile(); /** Column name Description */ - public static final String COLUMNNAME_Description = "Description"; + public static final String COLUMNNAME_Description = "Description"; /** Set Description. - * Optional short description of the record + * Optional short description of the record */ - public void setDescription (String Description); + public void setDescription (String Description); /** Get Description. - * Optional short description of the record + * Optional short description of the record */ - public String getDescription(); + public String getDescription(); /** Column name EMail */ - public static final String COLUMNNAME_EMail = "EMail"; + public static final String COLUMNNAME_EMail = "EMail"; /** Set EMail Address. - * Electronic Mail Address + * Electronic Mail Address */ - public void setEMail (String EMail); + public void setEMail (String EMail); /** Get EMail Address. - * Electronic Mail Address + * Electronic Mail Address */ - public String getEMail(); + public String getEMail(); /** Column name EMailUser */ - public static final String COLUMNNAME_EMailUser = "EMailUser"; + public static final String COLUMNNAME_EMailUser = "EMailUser"; /** Set EMail User ID. - * User Name (ID) in the Mail System + * User Name (ID) in the Mail System */ - public void setEMailUser (String EMailUser); + public void setEMailUser (String EMailUser); /** Get EMail User ID. - * User Name (ID) in the Mail System + * User Name (ID) in the Mail System */ - public String getEMailUser(); + public String getEMailUser(); /** Column name EMailUserPW */ - public static final String COLUMNNAME_EMailUserPW = "EMailUserPW"; + public static final String COLUMNNAME_EMailUserPW = "EMailUserPW"; /** Set EMail User Password. - * Password of your email user id + * Password of your email user id */ - public void setEMailUserPW (String EMailUserPW); + public void setEMailUserPW (String EMailUserPW); /** Get EMail User Password. - * Password of your email user id + * Password of your email user id */ - public String getEMailUserPW(); + public String getEMailUserPW(); /** Column name EMailVerify */ - public static final String COLUMNNAME_EMailVerify = "EMailVerify"; + public static final String COLUMNNAME_EMailVerify = "EMailVerify"; /** Set Verification Info. - * Verification information of EMail Address + * Verification information of EMail Address */ - public void setEMailVerify (String EMailVerify); + public void setEMailVerify (String EMailVerify); /** Get Verification Info. - * Verification information of EMail Address + * Verification information of EMail Address */ - public String getEMailVerify(); + public String getEMailVerify(); /** Column name EMailVerifyDate */ - public static final String COLUMNNAME_EMailVerifyDate = "EMailVerifyDate"; + public static final String COLUMNNAME_EMailVerifyDate = "EMailVerifyDate"; /** Set EMail Verify. - * Date Email was verified + * Date Email was verified */ - public void setEMailVerifyDate (Timestamp EMailVerifyDate); + public void setEMailVerifyDate (Timestamp EMailVerifyDate); /** Get EMail Verify. - * Date Email was verified + * Date Email was verified */ - public Timestamp getEMailVerifyDate(); + public Timestamp getEMailVerifyDate(); /** Column name Fax */ - public static final String COLUMNNAME_Fax = "Fax"; + public static final String COLUMNNAME_Fax = "Fax"; /** Set Fax. - * Facsimile number + * Facsimile number */ - public void setFax (String Fax); + public void setFax (String Fax); /** Get Fax. - * Facsimile number + * Facsimile number */ - public String getFax(); + public String getFax(); /** Column name IsFullBPAccess */ - public static final String COLUMNNAME_IsFullBPAccess = "IsFullBPAccess"; + public static final String COLUMNNAME_IsFullBPAccess = "IsFullBPAccess"; /** Set Full BP Access. - * The user/concat has full access to Business Partner information and resources + * The user/concat has full access to Business Partner information and resources */ - public void setIsFullBPAccess (boolean IsFullBPAccess); + public void setIsFullBPAccess (boolean IsFullBPAccess); /** Get Full BP Access. - * The user/concat has full access to Business Partner information and resources + * The user/concat has full access to Business Partner information and resources */ - public boolean isFullBPAccess(); + public boolean isFullBPAccess(); /** Column name LDAPUser */ - public static final String COLUMNNAME_LDAPUser = "LDAPUser"; + public static final String COLUMNNAME_LDAPUser = "LDAPUser"; /** Set LDAP User Name. - * User Name used for authorization via LDAP (directory) services + * User Name used for authorization via LDAP (directory) services */ - public void setLDAPUser (String LDAPUser); + public void setLDAPUser (String LDAPUser); /** Get LDAP User Name. - * User Name used for authorization via LDAP (directory) services + * User Name used for authorization via LDAP (directory) services */ - public String getLDAPUser(); + public String getLDAPUser(); /** Column name LastContact */ - public static final String COLUMNNAME_LastContact = "LastContact"; + public static final String COLUMNNAME_LastContact = "LastContact"; /** Set Last Contact. - * Date this individual was last contacted + * Date this individual was last contacted */ - public void setLastContact (Timestamp LastContact); + public void setLastContact (Timestamp LastContact); /** Get Last Contact. - * Date this individual was last contacted + * Date this individual was last contacted */ - public Timestamp getLastContact(); + public Timestamp getLastContact(); /** Column name LastResult */ - public static final String COLUMNNAME_LastResult = "LastResult"; + public static final String COLUMNNAME_LastResult = "LastResult"; /** Set Last Result. - * Result of last contact + * Result of last contact */ - public void setLastResult (String LastResult); + public void setLastResult (String LastResult); /** Get Last Result. - * Result of last contact + * Result of last contact */ - public String getLastResult(); + public String getLastResult(); /** Column name Name */ - public static final String COLUMNNAME_Name = "Name"; + public static final String COLUMNNAME_Name = "Name"; /** Set Name. - * Alphanumeric identifier of the entity + * Alphanumeric identifier of the entity */ - public void setName (String Name); + public void setName (String Name); /** Get Name. - * Alphanumeric identifier of the entity + * Alphanumeric identifier of the entity */ - public String getName(); + public String getName(); /** Column name NotificationType */ - public static final String COLUMNNAME_NotificationType = "NotificationType"; + public static final String COLUMNNAME_NotificationType = "NotificationType"; /** Set Notification Type. - * Type of Notifications + * Type of Notifications */ - public void setNotificationType (String NotificationType); + public void setNotificationType (String NotificationType); /** Get Notification Type. - * Type of Notifications + * Type of Notifications */ - public String getNotificationType(); + public String getNotificationType(); /** Column name Password */ - public static final String COLUMNNAME_Password = "Password"; + public static final String COLUMNNAME_Password = "Password"; /** Set Password. - * Password of any length (case sensitive) + * Password of any length (case sensitive) */ - public void setPassword (String Password); + public void setPassword (String Password); /** Get Password. - * Password of any length (case sensitive) + * Password of any length (case sensitive) */ - public String getPassword(); + public String getPassword(); /** Column name Phone */ - public static final String COLUMNNAME_Phone = "Phone"; + public static final String COLUMNNAME_Phone = "Phone"; /** Set Phone. - * Identifies a telephone number + * Identifies a telephone number */ - public void setPhone (String Phone); + public void setPhone (String Phone); /** Get Phone. - * Identifies a telephone number + * Identifies a telephone number */ - public String getPhone(); + public String getPhone(); /** Column name Phone2 */ - public static final String COLUMNNAME_Phone2 = "Phone2"; + public static final String COLUMNNAME_Phone2 = "Phone2"; /** Set 2nd Phone. - * Identifies an alternate telephone number. + * Identifies an alternate telephone number. */ - public void setPhone2 (String Phone2); + public void setPhone2 (String Phone2); /** Get 2nd Phone. - * Identifies an alternate telephone number. + * Identifies an alternate telephone number. */ - public String getPhone2(); + public String getPhone2(); /** Column name Processing */ - public static final String COLUMNNAME_Processing = "Processing"; + public static final String COLUMNNAME_Processing = "Processing"; /** Set Process Now */ - public void setProcessing (boolean Processing); + public void setProcessing (boolean Processing); /** Get Process Now */ - public boolean isProcessing(); + public boolean isProcessing(); /** Column name Supervisor_ID */ - public static final String COLUMNNAME_Supervisor_ID = "Supervisor_ID"; + public static final String COLUMNNAME_Supervisor_ID = "Supervisor_ID"; /** Set Supervisor. - * Supervisor for this user/organization - used for escalation and approval + * Supervisor for this user/organization - used for escalation and approval */ - public void setSupervisor_ID (int Supervisor_ID); + public void setSupervisor_ID (int Supervisor_ID); /** Get Supervisor. - * Supervisor for this user/organization - used for escalation and approval + * Supervisor for this user/organization - used for escalation and approval */ - public int getSupervisor_ID(); + public int getSupervisor_ID(); /** Column name Title */ - public static final String COLUMNNAME_Title = "Title"; + public static final String COLUMNNAME_Title = "Title"; /** Set Title. - * Name this entity is referred to as + * Name this entity is referred to as */ - public void setTitle (String Title); + public void setTitle (String Title); /** Get Title. - * Name this entity is referred to as + * Name this entity is referred to as */ - public String getTitle(); + public String getTitle(); + + /** Column name UserPIN */ + public static final String COLUMNNAME_UserPIN = "UserPIN"; + + /** Set UserPIN */ + public void setUserPIN (String UserPIN); + + /** Get UserPIN */ + public String getUserPIN(); /** Column name Value */ - public static final String COLUMNNAME_Value = "Value"; + public static final String COLUMNNAME_Value = "Value"; /** Set Search Key. - * Search key for the record in the format required - must be unique + * Search key for the record in the format required - must be unique */ - public void setValue (String Value); + public void setValue (String Value); /** Get Search Key. - * Search key for the record in the format required - must be unique + * Search key for the record in the format required - must be unique */ - public String getValue(); -} + public String getValue(); +} diff --git a/base/src/org/compiere/model/I_C_Order.java b/base/src/org/compiere/model/I_C_Order.java index aa4e73fbc6..47d4640d2f 100644 --- a/base/src/org/compiere/model/I_C_Order.java +++ b/base/src/org/compiere/model/I_C_Order.java @@ -5,21 +5,21 @@ * Copyright (C) Trifon Trifonov. * * Copyright (C) Contributors * * * - * This program is free software; + * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * - * as published by the Free Software Foundation; + * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; + * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * - * along with this program; + * along with this program; if not, write to the Free Software * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * * MA 02110-1301, USA. * @@ -30,901 +30,938 @@ * Sponsors: * * - Company (http://www.site.com) * **********************************************************************/ -package org.compiere.model; - -import java.util.*; -import java.sql.Timestamp; -import java.math.*; -import org.compiere.util.*; +package org.compiere.model; - /** 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 -{ +import java.math.BigDecimal; +import java.sql.Timestamp; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for C_Order + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 + */ +public interface I_C_Order +{ /** TableName=C_Order */ - public static final String Table_Name = "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); + public static final int Table_ID = MTable.getTable_ID(Table_Name); - KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); /** AccessLevel = 1 - Org */ - BigDecimal accessLevel = new BigDecimal(1); + BigDecimal accessLevel = BigDecimal.valueOf(1); /** Load Meta Data */ /** Column name AD_OrgTrx_ID */ - public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; /** Set Trx Organization. - * Performing or initiating organization + * Performing or initiating organization */ - public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); /** Get Trx Organization. - * Performing or initiating organization + * Performing or initiating organization */ - public int getAD_OrgTrx_ID(); + public int getAD_OrgTrx_ID(); /** Column name AD_User_ID */ - public static final String COLUMNNAME_AD_User_ID = "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 + * User within the system - Internal or Business Partner Contact */ - public void setAD_User_ID (int AD_User_ID); + public void setAD_User_ID (int AD_User_ID); /** Get User/Contact. - * User within the system - Internal or Business Partner Contact + * User within the system - Internal or Business Partner Contact */ - public int getAD_User_ID(); + public int getAD_User_ID(); - public I_AD_User getI_AD_User() throws Exception; + public I_AD_User getAD_User() throws Exception; + + /** Column name AmountRefunded */ + public static final String COLUMNNAME_AmountRefunded = "AmountRefunded"; + + /** Set AmountRefunded */ + public void setAmountRefunded (BigDecimal AmountRefunded); + + /** Get AmountRefunded */ + public BigDecimal getAmountRefunded(); + + /** Column name AmountTendered */ + public static final String COLUMNNAME_AmountTendered = "AmountTendered"; + + /** Set AmountTendered */ + public void setAmountTendered (BigDecimal AmountTendered); + + /** Get AmountTendered */ + public BigDecimal getAmountTendered(); /** Column name Bill_BPartner_ID */ - public static final String COLUMNNAME_Bill_BPartner_ID = "Bill_BPartner_ID"; + public static final String COLUMNNAME_Bill_BPartner_ID = "Bill_BPartner_ID"; /** Set Invoice Partner. - * Business Partner to be invoiced + * Business Partner to be invoiced */ - public void setBill_BPartner_ID (int Bill_BPartner_ID); + public void setBill_BPartner_ID (int Bill_BPartner_ID); /** Get Invoice Partner. - * Business Partner to be invoiced + * Business Partner to be invoiced */ - public int getBill_BPartner_ID(); + public int getBill_BPartner_ID(); /** Column name Bill_Location_ID */ - public static final String COLUMNNAME_Bill_Location_ID = "Bill_Location_ID"; + public static final String COLUMNNAME_Bill_Location_ID = "Bill_Location_ID"; /** Set Invoice Location. - * Business Partner Location for invoicing + * Business Partner Location for invoicing */ - public void setBill_Location_ID (int Bill_Location_ID); + public void setBill_Location_ID (int Bill_Location_ID); /** Get Invoice Location. - * Business Partner Location for invoicing + * Business Partner Location for invoicing */ - public int getBill_Location_ID(); + public int getBill_Location_ID(); /** Column name Bill_User_ID */ - public static final String COLUMNNAME_Bill_User_ID = "Bill_User_ID"; + public static final String COLUMNNAME_Bill_User_ID = "Bill_User_ID"; /** Set Invoice Contact. - * Business Partner Contact for invoicing + * Business Partner Contact for invoicing */ - public void setBill_User_ID (int Bill_User_ID); + public void setBill_User_ID (int Bill_User_ID); /** Get Invoice Contact. - * Business Partner Contact for invoicing + * Business Partner Contact for invoicing */ - public int getBill_User_ID(); + public int getBill_User_ID(); /** Column name C_Activity_ID */ - public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; /** Set Activity. - * Business Activity + * Business Activity */ - public void setC_Activity_ID (int C_Activity_ID); + public void setC_Activity_ID (int C_Activity_ID); /** Get Activity. - * Business Activity + * Business Activity */ - public int getC_Activity_ID(); + public int getC_Activity_ID(); - public I_C_Activity getI_C_Activity() throws Exception; + public I_C_Activity getC_Activity() throws Exception; /** Column name C_BPartner_ID */ - public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; /** Set Business Partner . - * Identifies a Business Partner + * Identifies a Business Partner */ - public void setC_BPartner_ID (int C_BPartner_ID); + public void setC_BPartner_ID (int C_BPartner_ID); /** Get Business Partner . - * Identifies a Business Partner + * Identifies a Business Partner */ - public int getC_BPartner_ID(); + public int getC_BPartner_ID(); /** Column name C_BPartner_Location_ID */ - public static final String COLUMNNAME_C_BPartner_Location_ID = "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 + * Identifies the (ship to) address for this Business Partner */ - public void setC_BPartner_Location_ID (int C_BPartner_Location_ID); + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID); /** Get Partner Location. - * Identifies the (ship to) address for this Business Partner + * Identifies the (ship to) address for this Business Partner */ - public int getC_BPartner_Location_ID(); + public int getC_BPartner_Location_ID(); - public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception; + public I_C_BPartner_Location getC_BPartner_Location() throws Exception; /** Column name C_Campaign_ID */ - public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; /** Set Campaign. - * Marketing Campaign + * Marketing Campaign */ - public void setC_Campaign_ID (int C_Campaign_ID); + public void setC_Campaign_ID (int C_Campaign_ID); /** Get Campaign. - * Marketing Campaign + * Marketing Campaign */ - public int getC_Campaign_ID(); + public int getC_Campaign_ID(); - public I_C_Campaign getI_C_Campaign() throws Exception; + public I_C_Campaign getC_Campaign() throws Exception; /** Column name C_CashLine_ID */ - public static final String COLUMNNAME_C_CashLine_ID = "C_CashLine_ID"; + public static final String COLUMNNAME_C_CashLine_ID = "C_CashLine_ID"; /** Set Cash Journal Line. - * Cash Journal Line + * Cash Journal Line */ - public void setC_CashLine_ID (int C_CashLine_ID); + public void setC_CashLine_ID (int C_CashLine_ID); /** Get Cash Journal Line. - * Cash Journal Line + * Cash Journal Line */ - public int getC_CashLine_ID(); + public int getC_CashLine_ID(); /** Column name C_Charge_ID */ - public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; + public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; /** Set Charge. - * Additional document charges + * Additional document charges */ - public void setC_Charge_ID (int C_Charge_ID); + public void setC_Charge_ID (int C_Charge_ID); /** Get Charge. - * Additional document charges + * Additional document charges */ - public int getC_Charge_ID(); + public int getC_Charge_ID(); /** Column name C_ConversionType_ID */ - public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID"; + public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID"; /** Set Currency Type. - * Currency Conversion Rate Type + * Currency Conversion Rate Type */ - public void setC_ConversionType_ID (int C_ConversionType_ID); + public void setC_ConversionType_ID (int C_ConversionType_ID); /** Get Currency Type. - * Currency Conversion Rate Type + * Currency Conversion Rate Type */ - public int getC_ConversionType_ID(); + public int getC_ConversionType_ID(); - public I_C_ConversionType getI_C_ConversionType() throws Exception; + public I_C_ConversionType getC_ConversionType() throws Exception; /** Column name C_Currency_ID */ - public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; /** Set Currency. - * The Currency for this record + * The Currency for this record */ - public void setC_Currency_ID (int C_Currency_ID); + public void setC_Currency_ID (int C_Currency_ID); /** Get Currency. - * The Currency for this record + * The Currency for this record */ - public int getC_Currency_ID(); + public int getC_Currency_ID(); - public I_C_Currency getI_C_Currency() throws Exception; + public I_C_Currency getC_Currency() throws Exception; /** Column name C_DocTypeTarget_ID */ - public static final String COLUMNNAME_C_DocTypeTarget_ID = "C_DocTypeTarget_ID"; + public static final String COLUMNNAME_C_DocTypeTarget_ID = "C_DocTypeTarget_ID"; /** Set Target Document Type. - * Target document type for conversing documents + * Target document type for conversing documents */ - public void setC_DocTypeTarget_ID (int C_DocTypeTarget_ID); + public void setC_DocTypeTarget_ID (int C_DocTypeTarget_ID); /** Get Target Document Type. - * Target document type for conversing documents + * Target document type for conversing documents */ - public int getC_DocTypeTarget_ID(); + public int getC_DocTypeTarget_ID(); /** Column name C_DocType_ID */ - public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; /** Set Document Type. - * Document type or rules + * Document type or rules */ - public void setC_DocType_ID (int C_DocType_ID); + public void setC_DocType_ID (int C_DocType_ID); /** Get Document Type. - * Document type or rules + * Document type or rules */ - public int getC_DocType_ID(); + public int getC_DocType_ID(); - public I_C_DocType getI_C_DocType() throws Exception; + public I_C_DocType getC_DocType() throws Exception; /** Column name C_Order_ID */ - public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; + public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; /** Set Order. - * Order + * Order */ - public void setC_Order_ID (int C_Order_ID); + public void setC_Order_ID (int C_Order_ID); /** Get Order. - * Order + * Order */ - public int getC_Order_ID(); + public int getC_Order_ID(); + + /** Column name C_POS_ID */ + public static final String COLUMNNAME_C_POS_ID = "C_POS_ID"; + + /** Set C_POS_ID */ + public void setC_POS_ID (int C_POS_ID); + + /** Get C_POS_ID */ + public int getC_POS_ID(); + + public I_C_POS getC_POS() throws Exception; /** Column name C_PaymentTerm_ID */ - public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID"; + public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID"; /** Set Payment Term. - * The terms of Payment (timing, discount) + * The terms of Payment (timing, discount) */ - public void setC_PaymentTerm_ID (int C_PaymentTerm_ID); + public void setC_PaymentTerm_ID (int C_PaymentTerm_ID); /** Get Payment Term. - * The terms of Payment (timing, discount) + * The terms of Payment (timing, discount) */ - public int getC_PaymentTerm_ID(); + public int getC_PaymentTerm_ID(); - public I_C_PaymentTerm getI_C_PaymentTerm() throws Exception; + public I_C_PaymentTerm getC_PaymentTerm() throws Exception; /** Column name C_Payment_ID */ - public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; + public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; /** Set Payment. - * Payment identifier + * Payment identifier */ - public void setC_Payment_ID (int C_Payment_ID); + public void setC_Payment_ID (int C_Payment_ID); /** Get Payment. - * Payment identifier + * Payment identifier */ - public int getC_Payment_ID(); + public int getC_Payment_ID(); /** Column name C_Project_ID */ - public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; /** Set Project. - * Financial Project + * Financial Project */ - public void setC_Project_ID (int C_Project_ID); + public void setC_Project_ID (int C_Project_ID); /** Get Project. - * Financial Project + * Financial Project */ - public int getC_Project_ID(); + public int getC_Project_ID(); - public I_C_Project getI_C_Project() throws Exception; + public I_C_Project getC_Project() throws Exception; /** Column name ChargeAmt */ - public static final String COLUMNNAME_ChargeAmt = "ChargeAmt"; + public static final String COLUMNNAME_ChargeAmt = "ChargeAmt"; /** Set Charge amount. - * Charge Amount + * Charge Amount */ - public void setChargeAmt (BigDecimal ChargeAmt); + public void setChargeAmt (BigDecimal ChargeAmt); /** Get Charge amount. - * Charge Amount + * Charge Amount */ - public BigDecimal getChargeAmt(); + public BigDecimal getChargeAmt(); /** Column name CopyFrom */ - public static final String COLUMNNAME_CopyFrom = "CopyFrom"; + public static final String COLUMNNAME_CopyFrom = "CopyFrom"; /** Set Copy From. - * Copy From Record + * Copy From Record */ - public void setCopyFrom (String CopyFrom); + public void setCopyFrom (String CopyFrom); /** Get Copy From. - * Copy From Record + * Copy From Record */ - public String getCopyFrom(); + public String getCopyFrom(); /** Column name DateAcct */ - public static final String COLUMNNAME_DateAcct = "DateAcct"; + public static final String COLUMNNAME_DateAcct = "DateAcct"; /** Set Account Date. - * Accounting Date + * Accounting Date */ - public void setDateAcct (Timestamp DateAcct); + public void setDateAcct (Timestamp DateAcct); /** Get Account Date. - * Accounting Date + * Accounting Date */ - public Timestamp getDateAcct(); + public Timestamp getDateAcct(); /** Column name DateOrdered */ - public static final String COLUMNNAME_DateOrdered = "DateOrdered"; + public static final String COLUMNNAME_DateOrdered = "DateOrdered"; /** Set Date Ordered. - * Date of Order + * Date of Order */ - public void setDateOrdered (Timestamp DateOrdered); + public void setDateOrdered (Timestamp DateOrdered); /** Get Date Ordered. - * Date of Order + * Date of Order */ - public Timestamp getDateOrdered(); + public Timestamp getDateOrdered(); /** Column name DatePrinted */ - public static final String COLUMNNAME_DatePrinted = "DatePrinted"; + public static final String COLUMNNAME_DatePrinted = "DatePrinted"; /** Set Date printed. - * Date the document was printed. + * Date the document was printed. */ - public void setDatePrinted (Timestamp DatePrinted); + public void setDatePrinted (Timestamp DatePrinted); /** Get Date printed. - * Date the document was printed. + * Date the document was printed. */ - public Timestamp getDatePrinted(); + public Timestamp getDatePrinted(); /** Column name DatePromised */ - public static final String COLUMNNAME_DatePromised = "DatePromised"; + public static final String COLUMNNAME_DatePromised = "DatePromised"; /** Set Date Promised. - * Date Order was promised + * Date Order was promised */ - public void setDatePromised (Timestamp DatePromised); + public void setDatePromised (Timestamp DatePromised); /** Get Date Promised. - * Date Order was promised + * Date Order was promised */ - public Timestamp getDatePromised(); + public Timestamp getDatePromised(); /** Column name DeliveryRule */ - public static final String COLUMNNAME_DeliveryRule = "DeliveryRule"; + public static final String COLUMNNAME_DeliveryRule = "DeliveryRule"; /** Set Delivery Rule. - * Defines the timing of Delivery + * Defines the timing of Delivery */ - public void setDeliveryRule (String DeliveryRule); + public void setDeliveryRule (String DeliveryRule); /** Get Delivery Rule. - * Defines the timing of Delivery + * Defines the timing of Delivery */ - public String getDeliveryRule(); + public String getDeliveryRule(); /** Column name DeliveryViaRule */ - public static final String COLUMNNAME_DeliveryViaRule = "DeliveryViaRule"; + public static final String COLUMNNAME_DeliveryViaRule = "DeliveryViaRule"; /** Set Delivery Via. - * How the order will be delivered + * How the order will be delivered */ - public void setDeliveryViaRule (String DeliveryViaRule); + public void setDeliveryViaRule (String DeliveryViaRule); /** Get Delivery Via. - * How the order will be delivered + * How the order will be delivered */ - public String getDeliveryViaRule(); + public String getDeliveryViaRule(); /** Column name Description */ - public static final String COLUMNNAME_Description = "Description"; + public static final String COLUMNNAME_Description = "Description"; /** Set Description. - * Optional short description of the record + * Optional short description of the record */ - public void setDescription (String Description); + public void setDescription (String Description); /** Get Description. - * Optional short description of the record + * Optional short description of the record */ - public String getDescription(); + public String getDescription(); /** Column name DocAction */ - public static final String COLUMNNAME_DocAction = "DocAction"; + public static final String COLUMNNAME_DocAction = "DocAction"; /** Set Document Action. - * The targeted status of the document + * The targeted status of the document */ - public void setDocAction (String DocAction); + public void setDocAction (String DocAction); /** Get Document Action. - * The targeted status of the document + * The targeted status of the document */ - public String getDocAction(); + public String getDocAction(); /** Column name DocStatus */ - public static final String COLUMNNAME_DocStatus = "DocStatus"; + public static final String COLUMNNAME_DocStatus = "DocStatus"; /** Set Document Status. - * The current status of the document + * The current status of the document */ - public void setDocStatus (String DocStatus); + public void setDocStatus (String DocStatus); /** Get Document Status. - * The current status of the document + * The current status of the document */ - public String getDocStatus(); + public String getDocStatus(); /** Column name DocumentNo */ - public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; /** Set Document No. - * Document sequence number of the document + * Document sequence number of the document */ - public void setDocumentNo (String DocumentNo); + public void setDocumentNo (String DocumentNo); /** Get Document No. - * Document sequence number of the document + * Document sequence number of the document */ - public String getDocumentNo(); + public String getDocumentNo(); /** Column name FreightAmt */ - public static final String COLUMNNAME_FreightAmt = "FreightAmt"; + public static final String COLUMNNAME_FreightAmt = "FreightAmt"; /** Set Freight Amount. - * Freight Amount + * Freight Amount */ - public void setFreightAmt (BigDecimal FreightAmt); + public void setFreightAmt (BigDecimal FreightAmt); /** Get Freight Amount. - * Freight Amount + * Freight Amount */ - public BigDecimal getFreightAmt(); + public BigDecimal getFreightAmt(); /** Column name FreightCostRule */ - public static final String COLUMNNAME_FreightCostRule = "FreightCostRule"; + public static final String COLUMNNAME_FreightCostRule = "FreightCostRule"; /** Set Freight Cost Rule. - * Method for charging Freight + * Method for charging Freight */ - public void setFreightCostRule (String FreightCostRule); + public void setFreightCostRule (String FreightCostRule); /** Get Freight Cost Rule. - * Method for charging Freight + * Method for charging Freight */ - public String getFreightCostRule(); + public String getFreightCostRule(); /** Column name GrandTotal */ - public static final String COLUMNNAME_GrandTotal = "GrandTotal"; + public static final String COLUMNNAME_GrandTotal = "GrandTotal"; /** Set Grand Total. - * Total amount of document + * Total amount of document */ - public void setGrandTotal (BigDecimal GrandTotal); + public void setGrandTotal (BigDecimal GrandTotal); /** Get Grand Total. - * Total amount of document + * Total amount of document */ - public BigDecimal getGrandTotal(); + public BigDecimal getGrandTotal(); /** Column name InvoiceRule */ - public static final String COLUMNNAME_InvoiceRule = "InvoiceRule"; + public static final String COLUMNNAME_InvoiceRule = "InvoiceRule"; /** Set Invoice Rule. - * Frequency and method of invoicing + * Frequency and method of invoicing */ - public void setInvoiceRule (String InvoiceRule); + public void setInvoiceRule (String InvoiceRule); /** Get Invoice Rule. - * Frequency and method of invoicing + * Frequency and method of invoicing */ - public String getInvoiceRule(); + public String getInvoiceRule(); /** Column name IsApproved */ - public static final String COLUMNNAME_IsApproved = "IsApproved"; + public static final String COLUMNNAME_IsApproved = "IsApproved"; /** Set Approved. - * Indicates if this document requires approval + * Indicates if this document requires approval */ - public void setIsApproved (boolean IsApproved); + public void setIsApproved (boolean IsApproved); /** Get Approved. - * Indicates if this document requires approval + * Indicates if this document requires approval */ - public boolean isApproved(); + public boolean isApproved(); /** Column name IsCreditApproved */ - public static final String COLUMNNAME_IsCreditApproved = "IsCreditApproved"; + public static final String COLUMNNAME_IsCreditApproved = "IsCreditApproved"; /** Set Credit Approved. - * Credit has been approved + * Credit has been approved */ - public void setIsCreditApproved (boolean IsCreditApproved); + public void setIsCreditApproved (boolean IsCreditApproved); /** Get Credit Approved. - * Credit has been approved + * Credit has been approved */ - public boolean isCreditApproved(); + public boolean isCreditApproved(); /** Column name IsDelivered */ - public static final String COLUMNNAME_IsDelivered = "IsDelivered"; + public static final String COLUMNNAME_IsDelivered = "IsDelivered"; /** Set Delivered */ - public void setIsDelivered (boolean IsDelivered); + public void setIsDelivered (boolean IsDelivered); /** Get Delivered */ - public boolean isDelivered(); + public boolean isDelivered(); /** Column name IsDiscountPrinted */ - public static final String COLUMNNAME_IsDiscountPrinted = "IsDiscountPrinted"; + public static final String COLUMNNAME_IsDiscountPrinted = "IsDiscountPrinted"; /** Set Discount Printed. - * Print Discount on Invoice and Order + * Print Discount on Invoice and Order */ - public void setIsDiscountPrinted (boolean IsDiscountPrinted); + public void setIsDiscountPrinted (boolean IsDiscountPrinted); /** Get Discount Printed. - * Print Discount on Invoice and Order + * Print Discount on Invoice and Order */ - public boolean isDiscountPrinted(); + public boolean isDiscountPrinted(); /** Column name IsDropShip */ - public static final String COLUMNNAME_IsDropShip = "IsDropShip"; + public static final String COLUMNNAME_IsDropShip = "IsDropShip"; /** Set Drop Shipment. - * Drop Shipments are sent from the Vendor directly to the Customer + * Drop Shipments are sent from the Vendor directly to the Customer */ - public void setIsDropShip (boolean IsDropShip); + public void setIsDropShip (boolean IsDropShip); /** Get Drop Shipment. - * Drop Shipments are sent from the Vendor directly to the Customer + * Drop Shipments are sent from the Vendor directly to the Customer */ - public boolean isDropShip(); + public boolean isDropShip(); /** Column name IsInvoiced */ - public static final String COLUMNNAME_IsInvoiced = "IsInvoiced"; + public static final String COLUMNNAME_IsInvoiced = "IsInvoiced"; /** Set Invoiced. - * Is this invoiced? + * Is this invoiced? */ - public void setIsInvoiced (boolean IsInvoiced); + public void setIsInvoiced (boolean IsInvoiced); /** Get Invoiced. - * Is this invoiced? + * Is this invoiced? */ - public boolean isInvoiced(); + public boolean isInvoiced(); /** Column name IsPrinted */ - public static final String COLUMNNAME_IsPrinted = "IsPrinted"; + public static final String COLUMNNAME_IsPrinted = "IsPrinted"; /** Set Printed. - * Indicates if this document / line is printed + * Indicates if this document / line is printed */ - public void setIsPrinted (boolean IsPrinted); + public void setIsPrinted (boolean IsPrinted); /** Get Printed. - * Indicates if this document / line is printed + * Indicates if this document / line is printed */ - public boolean isPrinted(); + public boolean isPrinted(); /** Column name IsSOTrx */ - public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; + public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; /** Set Sales Transaction. - * This is a Sales Transaction + * This is a Sales Transaction */ - public void setIsSOTrx (boolean IsSOTrx); + public void setIsSOTrx (boolean IsSOTrx); /** Get Sales Transaction. - * This is a Sales Transaction + * This is a Sales Transaction */ - public boolean isSOTrx(); + public boolean isSOTrx(); /** Column name IsSelected */ - public static final String COLUMNNAME_IsSelected = "IsSelected"; + public static final String COLUMNNAME_IsSelected = "IsSelected"; /** Set Selected */ - public void setIsSelected (boolean IsSelected); + public void setIsSelected (boolean IsSelected); /** Get Selected */ - public boolean isSelected(); + public boolean isSelected(); /** Column name IsSelfService */ - public static final String COLUMNNAME_IsSelfService = "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 + * This is a Self-Service entry or this entry can be changed via Self-Service */ - public void setIsSelfService (boolean IsSelfService); + public void setIsSelfService (boolean IsSelfService); /** Get Self-Service. - * This is a Self-Service entry or this entry can be changed via Self-Service + * This is a Self-Service entry or this entry can be changed via Self-Service */ - public boolean isSelfService(); + public boolean isSelfService(); /** Column name IsTaxIncluded */ - public static final String COLUMNNAME_IsTaxIncluded = "IsTaxIncluded"; + public static final String COLUMNNAME_IsTaxIncluded = "IsTaxIncluded"; /** Set Price includes Tax. - * Tax is included in the price + * Tax is included in the price */ - public void setIsTaxIncluded (boolean IsTaxIncluded); + public void setIsTaxIncluded (boolean IsTaxIncluded); /** Get Price includes Tax. - * Tax is included in the price + * Tax is included in the price */ - public boolean isTaxIncluded(); + public boolean isTaxIncluded(); /** Column name IsTransferred */ - public static final String COLUMNNAME_IsTransferred = "IsTransferred"; + public static final String COLUMNNAME_IsTransferred = "IsTransferred"; /** Set Transferred. - * Transferred to General Ledger (i.e. accounted) + * Transferred to General Ledger (i.e. accounted) */ - public void setIsTransferred (boolean IsTransferred); + public void setIsTransferred (boolean IsTransferred); /** Get Transferred. - * Transferred to General Ledger (i.e. accounted) + * Transferred to General Ledger (i.e. accounted) */ - public boolean isTransferred(); + public boolean isTransferred(); /** Column name M_PriceList_ID */ - public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; + public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; /** Set Price List. - * Unique identifier of a Price List + * Unique identifier of a Price List */ - public void setM_PriceList_ID (int M_PriceList_ID); + public void setM_PriceList_ID (int M_PriceList_ID); /** Get Price List. - * Unique identifier of a Price List + * Unique identifier of a Price List */ - public int getM_PriceList_ID(); + public int getM_PriceList_ID(); - public I_M_PriceList getI_M_PriceList() throws Exception; + public I_M_PriceList getM_PriceList() throws Exception; /** Column name M_Shipper_ID */ - public static final String COLUMNNAME_M_Shipper_ID = "M_Shipper_ID"; + public static final String COLUMNNAME_M_Shipper_ID = "M_Shipper_ID"; /** Set Shipper. - * Method or manner of product delivery + * Method or manner of product delivery */ - public void setM_Shipper_ID (int M_Shipper_ID); + public void setM_Shipper_ID (int M_Shipper_ID); /** Get Shipper. - * Method or manner of product delivery + * Method or manner of product delivery */ - public int getM_Shipper_ID(); + public int getM_Shipper_ID(); - public I_M_Shipper getI_M_Shipper() throws Exception; + public I_M_Shipper getM_Shipper() throws Exception; /** Column name M_Warehouse_ID */ - public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; /** Set Warehouse. - * Storage Warehouse and Service Point + * Storage Warehouse and Service Point */ - public void setM_Warehouse_ID (int M_Warehouse_ID); + public void setM_Warehouse_ID (int M_Warehouse_ID); /** Get Warehouse. - * Storage Warehouse and Service Point + * Storage Warehouse and Service Point */ - public int getM_Warehouse_ID(); + public int getM_Warehouse_ID(); - public I_M_Warehouse getI_M_Warehouse() throws Exception; + public I_M_Warehouse getM_Warehouse() throws Exception; + + /** Column name OrderType */ + public static final String COLUMNNAME_OrderType = "OrderType"; + + /** Set OrderType */ + public void setOrderType (String OrderType); + + /** Get OrderType */ + public String getOrderType(); /** Column name POReference */ - public static final String COLUMNNAME_POReference = "POReference"; + public static final String COLUMNNAME_POReference = "POReference"; /** Set Order Reference. - * Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + * Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner */ - public void setPOReference (String POReference); + public void setPOReference (String POReference); /** Get Order Reference. - * Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + * Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner */ - public String getPOReference(); + public String getPOReference(); /** Column name Pay_BPartner_ID */ - public static final String COLUMNNAME_Pay_BPartner_ID = "Pay_BPartner_ID"; + public static final String COLUMNNAME_Pay_BPartner_ID = "Pay_BPartner_ID"; /** Set Payment BPartner. - * Business Partner responsible for the payment + * Business Partner responsible for the payment */ - public void setPay_BPartner_ID (int Pay_BPartner_ID); + public void setPay_BPartner_ID (int Pay_BPartner_ID); /** Get Payment BPartner. - * Business Partner responsible for the payment + * Business Partner responsible for the payment */ - public int getPay_BPartner_ID(); + public int getPay_BPartner_ID(); /** Column name Pay_Location_ID */ - public static final String COLUMNNAME_Pay_Location_ID = "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 + * Location of the Business Partner responsible for the payment */ - public void setPay_Location_ID (int Pay_Location_ID); + public void setPay_Location_ID (int Pay_Location_ID); /** Get Payment Location. - * Location of the Business Partner responsible for the payment + * Location of the Business Partner responsible for the payment */ - public int getPay_Location_ID(); + public int getPay_Location_ID(); /** Column name PaymentRule */ - public static final String COLUMNNAME_PaymentRule = "PaymentRule"; + public static final String COLUMNNAME_PaymentRule = "PaymentRule"; /** Set Payment Rule. - * How you pay the invoice + * How you pay the invoice */ - public void setPaymentRule (String PaymentRule); + public void setPaymentRule (String PaymentRule); /** Get Payment Rule. - * How you pay the invoice + * How you pay the invoice */ - public String getPaymentRule(); + public String getPaymentRule(); /** Column name Posted */ - public static final String COLUMNNAME_Posted = "Posted"; + public static final String COLUMNNAME_Posted = "Posted"; /** Set Posted. - * Posting status + * Posting status */ - public void setPosted (boolean Posted); + public void setPosted (boolean Posted); /** Get Posted. - * Posting status + * Posting status */ - public boolean isPosted(); + public boolean isPosted(); /** Column name PriorityRule */ - public static final String COLUMNNAME_PriorityRule = "PriorityRule"; + public static final String COLUMNNAME_PriorityRule = "PriorityRule"; /** Set Priority. - * Priority of a document + * Priority of a document */ - public void setPriorityRule (String PriorityRule); + public void setPriorityRule (String PriorityRule); /** Get Priority. - * Priority of a document + * Priority of a document */ - public String getPriorityRule(); + public String getPriorityRule(); /** Column name Processed */ - public static final String COLUMNNAME_Processed = "Processed"; + public static final String COLUMNNAME_Processed = "Processed"; /** Set Processed. - * The document has been processed + * The document has been processed */ - public void setProcessed (boolean Processed); + public void setProcessed (boolean Processed); /** Get Processed. - * The document has been processed + * The document has been processed */ - public boolean isProcessed(); + public boolean isProcessed(); /** Column name Processing */ - public static final String COLUMNNAME_Processing = "Processing"; + public static final String COLUMNNAME_Processing = "Processing"; /** Set Process Now */ - public void setProcessing (boolean Processing); + public void setProcessing (boolean Processing); /** Get Process Now */ - public boolean isProcessing(); + public boolean isProcessing(); /** Column name Ref_Order_ID */ - public static final String COLUMNNAME_Ref_Order_ID = "Ref_Order_ID"; + public static final String COLUMNNAME_Ref_Order_ID = "Ref_Order_ID"; /** Set Referenced Order. - * Reference to corresponding Sales/Purchase Order + * Reference to corresponding Sales/Purchase Order */ - public void setRef_Order_ID (int Ref_Order_ID); + public void setRef_Order_ID (int Ref_Order_ID); /** Get Referenced Order. - * Reference to corresponding Sales/Purchase Order + * Reference to corresponding Sales/Purchase Order */ - public int getRef_Order_ID(); + public int getRef_Order_ID(); /** Column name SalesRep_ID */ - public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; + public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; /** Set Sales Representative. - * Sales Representative or Company Agent + * Sales Representative or Company Agent */ - public void setSalesRep_ID (int SalesRep_ID); + public void setSalesRep_ID (int SalesRep_ID); /** Get Sales Representative. - * Sales Representative or Company Agent + * Sales Representative or Company Agent */ - public int getSalesRep_ID(); + public int getSalesRep_ID(); /** Column name SendEMail */ - public static final String COLUMNNAME_SendEMail = "SendEMail"; + public static final String COLUMNNAME_SendEMail = "SendEMail"; /** Set Send EMail. - * Enable sending Document EMail + * Enable sending Document EMail */ - public void setSendEMail (boolean SendEMail); + public void setSendEMail (boolean SendEMail); /** Get Send EMail. - * Enable sending Document EMail + * Enable sending Document EMail */ - public boolean isSendEMail(); + public boolean isSendEMail(); /** Column name TotalLines */ - public static final String COLUMNNAME_TotalLines = "TotalLines"; + public static final String COLUMNNAME_TotalLines = "TotalLines"; /** Set Total Lines. - * Total of all document lines + * Total of all document lines */ - public void setTotalLines (BigDecimal TotalLines); + public void setTotalLines (BigDecimal TotalLines); /** Get Total Lines. - * Total of all document lines + * Total of all document lines */ - public BigDecimal getTotalLines(); + public BigDecimal getTotalLines(); /** Column name User1_ID */ - public static final String COLUMNNAME_User1_ID = "User1_ID"; + public static final String COLUMNNAME_User1_ID = "User1_ID"; /** Set User List 1. - * User defined list element #1 + * User defined list element #1 */ - public void setUser1_ID (int User1_ID); + public void setUser1_ID (int User1_ID); /** Get User List 1. - * User defined list element #1 + * User defined list element #1 */ - public int getUser1_ID(); + public int getUser1_ID(); /** Column name User2_ID */ - public static final String COLUMNNAME_User2_ID = "User2_ID"; + public static final String COLUMNNAME_User2_ID = "User2_ID"; /** Set User List 2. - * User defined list element #2 + * User defined list element #2 */ - public void setUser2_ID (int User2_ID); + public void setUser2_ID (int User2_ID); /** Get User List 2. - * User defined list element #2 + * User defined list element #2 */ - public int getUser2_ID(); + public int getUser2_ID(); /** Column name Volume */ - public static final String COLUMNNAME_Volume = "Volume"; + public static final String COLUMNNAME_Volume = "Volume"; /** Set Volume. - * Volume of a product + * Volume of a product */ - public void setVolume (BigDecimal Volume); + public void setVolume (BigDecimal Volume); /** Get Volume. - * Volume of a product + * Volume of a product */ - public BigDecimal getVolume(); + public BigDecimal getVolume(); /** Column name Weight */ - public static final String COLUMNNAME_Weight = "Weight"; + public static final String COLUMNNAME_Weight = "Weight"; /** Set Weight. - * Weight of a product + * Weight of a product */ - public void setWeight (BigDecimal Weight); + public void setWeight (BigDecimal Weight); /** Get Weight. - * Weight of a product + * Weight of a product */ - public BigDecimal getWeight(); -} + public BigDecimal getWeight(); +} diff --git a/base/src/org/compiere/model/I_M_Product.java b/base/src/org/compiere/model/I_M_Product.java index f04d714930..0b82ae0a48 100644 --- a/base/src/org/compiere/model/I_M_Product.java +++ b/base/src/org/compiere/model/I_M_Product.java @@ -5,21 +5,21 @@ * Copyright (C) Trifon Trifonov. * * Copyright (C) Contributors * * * - * This program is free software; + * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * - * as published by the Free Software Foundation; + * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; + * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * - * along with this program; + * along with this program; if not, write to the Free Software * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * * MA 02110-1301, USA. * @@ -30,695 +30,699 @@ * Sponsors: * * - Company (http://www.site.com) * **********************************************************************/ -package org.compiere.model; - -import java.util.*; -import java.sql.Timestamp; -import java.math.*; -import org.compiere.util.*; +package org.compiere.model; - /** 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 -{ +import java.math.BigDecimal; +import java.sql.Timestamp; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for M_Product + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 + */ +public interface I_M_Product +{ /** TableName=M_Product */ - public static final String Table_Name = "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); + public static final int Table_ID = MTable.getTable_ID(Table_Name); - KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); /** AccessLevel = 3 - Client - Org */ - BigDecimal accessLevel = new BigDecimal(3); + BigDecimal accessLevel = BigDecimal.valueOf(3); /** Load Meta Data */ /** Column name C_RevenueRecognition_ID */ - public static final String COLUMNNAME_C_RevenueRecognition_ID = "C_RevenueRecognition_ID"; + public static final String COLUMNNAME_C_RevenueRecognition_ID = "C_RevenueRecognition_ID"; /** Set Revenue Recognition. - * Method for recording revenue + * Method for recording revenue */ - public void setC_RevenueRecognition_ID (int C_RevenueRecognition_ID); + public void setC_RevenueRecognition_ID (int C_RevenueRecognition_ID); /** Get Revenue Recognition. - * Method for recording revenue + * Method for recording revenue */ - public int getC_RevenueRecognition_ID(); + public int getC_RevenueRecognition_ID(); - public I_C_RevenueRecognition getI_C_RevenueRecognition() throws Exception; + public I_C_RevenueRecognition getC_RevenueRecognition() throws Exception; /** Column name C_SubscriptionType_ID */ - public static final String COLUMNNAME_C_SubscriptionType_ID = "C_SubscriptionType_ID"; + public static final String COLUMNNAME_C_SubscriptionType_ID = "C_SubscriptionType_ID"; /** Set Subscription Type. - * Type of subscription + * Type of subscription */ - public void setC_SubscriptionType_ID (int C_SubscriptionType_ID); + public void setC_SubscriptionType_ID (int C_SubscriptionType_ID); /** Get Subscription Type. - * Type of subscription + * Type of subscription */ - public int getC_SubscriptionType_ID(); + public int getC_SubscriptionType_ID(); /** Column name C_TaxCategory_ID */ - public static final String COLUMNNAME_C_TaxCategory_ID = "C_TaxCategory_ID"; + public static final String COLUMNNAME_C_TaxCategory_ID = "C_TaxCategory_ID"; /** Set Tax Category. - * Tax Category + * Tax Category */ - public void setC_TaxCategory_ID (int C_TaxCategory_ID); + public void setC_TaxCategory_ID (int C_TaxCategory_ID); /** Get Tax Category. - * Tax Category + * Tax Category */ - public int getC_TaxCategory_ID(); + public int getC_TaxCategory_ID(); - public I_C_TaxCategory getI_C_TaxCategory() throws Exception; + public I_C_TaxCategory getC_TaxCategory() throws Exception; /** Column name C_UOM_ID */ - public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; + public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; /** Set UOM. - * Unit of Measure + * Unit of Measure */ - public void setC_UOM_ID (int C_UOM_ID); + public void setC_UOM_ID (int C_UOM_ID); /** Get UOM. - * Unit of Measure + * Unit of Measure */ - public int getC_UOM_ID(); + public int getC_UOM_ID(); - public I_C_UOM getI_C_UOM() throws Exception; + public I_C_UOM getC_UOM() throws Exception; /** Column name Classification */ - public static final String COLUMNNAME_Classification = "Classification"; + public static final String COLUMNNAME_Classification = "Classification"; /** Set Classification. - * Classification for grouping + * Classification for grouping */ - public void setClassification (String Classification); + public void setClassification (String Classification); /** Get Classification. - * Classification for grouping + * Classification for grouping */ - public String getClassification(); + public String getClassification(); /** Column name Description */ - public static final String COLUMNNAME_Description = "Description"; + public static final String COLUMNNAME_Description = "Description"; /** Set Description. - * Optional short description of the record + * Optional short description of the record */ - public void setDescription (String Description); + public void setDescription (String Description); /** Get Description. - * Optional short description of the record + * Optional short description of the record */ - public String getDescription(); + public String getDescription(); /** Column name DescriptionURL */ - public static final String COLUMNNAME_DescriptionURL = "DescriptionURL"; + public static final String COLUMNNAME_DescriptionURL = "DescriptionURL"; /** Set Description URL. - * URL for the description + * URL for the description */ - public void setDescriptionURL (String DescriptionURL); + public void setDescriptionURL (String DescriptionURL); /** Get Description URL. - * URL for the description + * URL for the description */ - public String getDescriptionURL(); + public String getDescriptionURL(); /** Column name Discontinued */ - public static final String COLUMNNAME_Discontinued = "Discontinued"; + public static final String COLUMNNAME_Discontinued = "Discontinued"; /** Set Discontinued. - * This product is no longer available + * This product is no longer available */ - public void setDiscontinued (boolean Discontinued); + public void setDiscontinued (boolean Discontinued); /** Get Discontinued. - * This product is no longer available + * This product is no longer available */ - public boolean isDiscontinued(); + public boolean isDiscontinued(); /** Column name DiscontinuedBy */ - public static final String COLUMNNAME_DiscontinuedBy = "DiscontinuedBy"; + public static final String COLUMNNAME_DiscontinuedBy = "DiscontinuedBy"; /** Set Discontinued by. - * Discontinued By + * Discontinued By */ - public void setDiscontinuedBy (Timestamp DiscontinuedBy); + public void setDiscontinuedBy (Timestamp DiscontinuedBy); /** Get Discontinued by. - * Discontinued By + * Discontinued By */ - public Timestamp getDiscontinuedBy(); + public Timestamp getDiscontinuedBy(); /** Column name DocumentNote */ - public static final String COLUMNNAME_DocumentNote = "DocumentNote"; + public static final String COLUMNNAME_DocumentNote = "DocumentNote"; /** Set Document Note. - * Additional information for a Document + * Additional information for a Document */ - public void setDocumentNote (String DocumentNote); + public void setDocumentNote (String DocumentNote); /** Get Document Note. - * Additional information for a Document + * Additional information for a Document */ - public String getDocumentNote(); + public String getDocumentNote(); - /** Column name DownloadURL */ - public static final String COLUMNNAME_DownloadURL = "DownloadURL"; + /** Column name Group1 */ + public static final String COLUMNNAME_Group1 = "Group1"; - /** Set Download URL. - * URL of the Download files - */ - public void setDownloadURL (String DownloadURL); + /** Set Group1 */ + public void setGroup1 (String Group1); - /** Get Download URL. - * URL of the Download files - */ - public String getDownloadURL(); + /** Get Group1 */ + public String getGroup1(); + + /** Column name Group2 */ + public static final String COLUMNNAME_Group2 = "Group2"; + + /** Set Group2 */ + public void setGroup2 (String Group2); + + /** Get Group2 */ + public String getGroup2(); /** Column name GuaranteeDays */ - public static final String COLUMNNAME_GuaranteeDays = "GuaranteeDays"; + public static final String COLUMNNAME_GuaranteeDays = "GuaranteeDays"; /** Set Guarantee Days. - * Number of days the product is guaranteed or available + * Number of days the product is guaranteed or available */ - public void setGuaranteeDays (int GuaranteeDays); + public void setGuaranteeDays (int GuaranteeDays); /** Get Guarantee Days. - * Number of days the product is guaranteed or available + * Number of days the product is guaranteed or available */ - public int getGuaranteeDays(); + public int getGuaranteeDays(); /** Column name GuaranteeDaysMin */ - public static final String COLUMNNAME_GuaranteeDaysMin = "GuaranteeDaysMin"; + public static final String COLUMNNAME_GuaranteeDaysMin = "GuaranteeDaysMin"; /** Set Min Guarantee Days. - * Minumum number of guarantee days + * Minumum number of guarantee days */ - public void setGuaranteeDaysMin (int GuaranteeDaysMin); + public void setGuaranteeDaysMin (int GuaranteeDaysMin); /** Get Min Guarantee Days. - * Minumum number of guarantee days + * Minumum number of guarantee days */ - public int getGuaranteeDaysMin(); + public int getGuaranteeDaysMin(); /** Column name Help */ - public static final String COLUMNNAME_Help = "Help"; + public static final String COLUMNNAME_Help = "Help"; /** Set Comment/Help. - * Comment or Hint + * Comment or Hint */ - public void setHelp (String Help); + public void setHelp (String Help); /** Get Comment/Help. - * Comment or Hint + * Comment or Hint */ - public String getHelp(); + public String getHelp(); /** Column name ImageURL */ - public static final String COLUMNNAME_ImageURL = "ImageURL"; + public static final String COLUMNNAME_ImageURL = "ImageURL"; /** Set Image URL. - * URL of image + * URL of image */ - public void setImageURL (String ImageURL); + public void setImageURL (String ImageURL); /** Get Image URL. - * URL of image + * URL of image */ - public String getImageURL(); + public String getImageURL(); /** Column name IsBOM */ - public static final String COLUMNNAME_IsBOM = "IsBOM"; + public static final String COLUMNNAME_IsBOM = "IsBOM"; /** Set Bill of Materials. - * Bill of Materials + * Bill of Materials */ - public void setIsBOM (boolean IsBOM); + public void setIsBOM (boolean IsBOM); /** Get Bill of Materials. - * Bill of Materials + * Bill of Materials */ - public boolean isBOM(); + public boolean isBOM(); /** Column name IsDropShip */ - public static final String COLUMNNAME_IsDropShip = "IsDropShip"; + public static final String COLUMNNAME_IsDropShip = "IsDropShip"; /** Set Drop Shipment. - * Drop Shipments are sent from the Vendor directly to the Customer + * Drop Shipments are sent from the Vendor directly to the Customer */ - public void setIsDropShip (boolean IsDropShip); + public void setIsDropShip (boolean IsDropShip); /** Get Drop Shipment. - * Drop Shipments are sent from the Vendor directly to the Customer + * Drop Shipments are sent from the Vendor directly to the Customer */ - public boolean isDropShip(); + public boolean isDropShip(); /** Column name IsExcludeAutoDelivery */ - public static final String COLUMNNAME_IsExcludeAutoDelivery = "IsExcludeAutoDelivery"; + public static final String COLUMNNAME_IsExcludeAutoDelivery = "IsExcludeAutoDelivery"; /** Set Exclude Auto Delivery. - * Exclude from automatic Delivery + * Exclude from automatic Delivery */ - public void setIsExcludeAutoDelivery (boolean IsExcludeAutoDelivery); + public void setIsExcludeAutoDelivery (boolean IsExcludeAutoDelivery); /** Get Exclude Auto Delivery. - * Exclude from automatic Delivery + * Exclude from automatic Delivery */ - public boolean isExcludeAutoDelivery(); + public boolean isExcludeAutoDelivery(); /** Column name IsInvoicePrintDetails */ - public static final String COLUMNNAME_IsInvoicePrintDetails = "IsInvoicePrintDetails"; + public static final String COLUMNNAME_IsInvoicePrintDetails = "IsInvoicePrintDetails"; /** Set Print detail records on invoice . - * Print detail BOM elements on the invoice + * Print detail BOM elements on the invoice */ - public void setIsInvoicePrintDetails (boolean IsInvoicePrintDetails); + public void setIsInvoicePrintDetails (boolean IsInvoicePrintDetails); /** Get Print detail records on invoice . - * Print detail BOM elements on the invoice + * Print detail BOM elements on the invoice */ - public boolean isInvoicePrintDetails(); + public boolean isInvoicePrintDetails(); /** Column name IsPickListPrintDetails */ - public static final String COLUMNNAME_IsPickListPrintDetails = "IsPickListPrintDetails"; + public static final String COLUMNNAME_IsPickListPrintDetails = "IsPickListPrintDetails"; /** Set Print detail records on pick list. - * Print detail BOM elements on the pick list + * Print detail BOM elements on the pick list */ - public void setIsPickListPrintDetails (boolean IsPickListPrintDetails); + public void setIsPickListPrintDetails (boolean IsPickListPrintDetails); /** Get Print detail records on pick list. - * Print detail BOM elements on the pick list + * Print detail BOM elements on the pick list */ - public boolean isPickListPrintDetails(); + public boolean isPickListPrintDetails(); /** Column name IsPurchased */ - public static final String COLUMNNAME_IsPurchased = "IsPurchased"; + public static final String COLUMNNAME_IsPurchased = "IsPurchased"; /** Set Purchased. - * Organization purchases this product + * Organization purchases this product */ - public void setIsPurchased (boolean IsPurchased); + public void setIsPurchased (boolean IsPurchased); /** Get Purchased. - * Organization purchases this product + * Organization purchases this product */ - public boolean isPurchased(); + public boolean isPurchased(); /** Column name IsSelfService */ - public static final String COLUMNNAME_IsSelfService = "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 + * This is a Self-Service entry or this entry can be changed via Self-Service */ - public void setIsSelfService (boolean IsSelfService); + public void setIsSelfService (boolean IsSelfService); /** Get Self-Service. - * This is a Self-Service entry or this entry can be changed via Self-Service + * This is a Self-Service entry or this entry can be changed via Self-Service */ - public boolean isSelfService(); + public boolean isSelfService(); /** Column name IsSold */ - public static final String COLUMNNAME_IsSold = "IsSold"; + public static final String COLUMNNAME_IsSold = "IsSold"; /** Set Sold. - * Organization sells this product + * Organization sells this product */ - public void setIsSold (boolean IsSold); + public void setIsSold (boolean IsSold); /** Get Sold. - * Organization sells this product + * Organization sells this product */ - public boolean isSold(); + public boolean isSold(); /** Column name IsStocked */ - public static final String COLUMNNAME_IsStocked = "IsStocked"; + public static final String COLUMNNAME_IsStocked = "IsStocked"; /** Set Stocked. - * Organization stocks this product + * Organization stocks this product */ - public void setIsStocked (boolean IsStocked); + public void setIsStocked (boolean IsStocked); /** Get Stocked. - * Organization stocks this product + * Organization stocks this product */ - public boolean isStocked(); + public boolean isStocked(); /** Column name IsSummary */ - public static final String COLUMNNAME_IsSummary = "IsSummary"; + public static final String COLUMNNAME_IsSummary = "IsSummary"; /** Set Summary Level. - * This is a summary entity + * This is a summary entity */ - public void setIsSummary (boolean IsSummary); + public void setIsSummary (boolean IsSummary); /** Get Summary Level. - * This is a summary entity + * This is a summary entity */ - public boolean isSummary(); + public boolean isSummary(); /** Column name IsVerified */ - public static final String COLUMNNAME_IsVerified = "IsVerified"; + public static final String COLUMNNAME_IsVerified = "IsVerified"; /** Set Verified. - * The BOM configuration has been verified + * The BOM configuration has been verified */ - public void setIsVerified (boolean IsVerified); + public void setIsVerified (boolean IsVerified); /** Get Verified. - * The BOM configuration has been verified + * The BOM configuration has been verified */ - public boolean isVerified(); + public boolean isVerified(); /** Column name IsWebStoreFeatured */ - public static final String COLUMNNAME_IsWebStoreFeatured = "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 + * If selected, the product is displayed in the inital or any empy search */ - public void setIsWebStoreFeatured (boolean IsWebStoreFeatured); + public void setIsWebStoreFeatured (boolean IsWebStoreFeatured); /** Get Featured in Web Store. - * If selected, the product is displayed in the inital or any empy search + * If selected, the product is displayed in the inital or any empy search */ - public boolean isWebStoreFeatured(); + public boolean isWebStoreFeatured(); /** Column name M_AttributeSetInstance_ID */ - public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; /** Set Attribute Set Instance. - * Product Attribute Set Instance + * Product Attribute Set Instance */ - public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); /** Get Attribute Set Instance. - * Product Attribute Set Instance + * Product Attribute Set Instance */ - public int getM_AttributeSetInstance_ID(); + public int getM_AttributeSetInstance_ID(); /** Column name M_AttributeSet_ID */ - public static final String COLUMNNAME_M_AttributeSet_ID = "M_AttributeSet_ID"; + public static final String COLUMNNAME_M_AttributeSet_ID = "M_AttributeSet_ID"; /** Set Attribute Set. - * Product Attribute Set + * Product Attribute Set */ - public void setM_AttributeSet_ID (int M_AttributeSet_ID); + public void setM_AttributeSet_ID (int M_AttributeSet_ID); /** Get Attribute Set. - * Product Attribute Set + * Product Attribute Set */ - public int getM_AttributeSet_ID(); + public int getM_AttributeSet_ID(); - public I_M_AttributeSet getI_M_AttributeSet() throws Exception; + public I_M_AttributeSet getM_AttributeSet() throws Exception; /** Column name M_FreightCategory_ID */ - public static final String COLUMNNAME_M_FreightCategory_ID = "M_FreightCategory_ID"; + public static final String COLUMNNAME_M_FreightCategory_ID = "M_FreightCategory_ID"; /** Set Freight Category. - * Category of the Freight + * Category of the Freight */ - public void setM_FreightCategory_ID (int M_FreightCategory_ID); + public void setM_FreightCategory_ID (int M_FreightCategory_ID); /** Get Freight Category. - * Category of the Freight + * Category of the Freight */ - public int getM_FreightCategory_ID(); + public int getM_FreightCategory_ID(); - public I_M_FreightCategory getI_M_FreightCategory() throws Exception; + public I_M_FreightCategory getM_FreightCategory() throws Exception; /** Column name M_Locator_ID */ - public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; + public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; /** Set Locator. - * Warehouse Locator + * Warehouse Locator */ - public void setM_Locator_ID (int M_Locator_ID); + public void setM_Locator_ID (int M_Locator_ID); /** Get Locator. - * Warehouse Locator + * Warehouse Locator */ - public int getM_Locator_ID(); + public int getM_Locator_ID(); /** Column name M_Product_Category_ID */ - public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; + public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; /** Set Product Category. - * Category of a Product + * Category of a Product */ - public void setM_Product_Category_ID (int M_Product_Category_ID); + public void setM_Product_Category_ID (int M_Product_Category_ID); /** Get Product Category. - * Category of a Product + * Category of a Product */ - public int getM_Product_Category_ID(); + public int getM_Product_Category_ID(); - public I_M_Product_Category getI_M_Product_Category() throws Exception; + public I_M_Product_Category getM_Product_Category() throws Exception; /** Column name M_Product_ID */ - public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; /** Set Product. - * Product, Service, Item + * Product, Service, Item */ - public void setM_Product_ID (int M_Product_ID); + public void setM_Product_ID (int M_Product_ID); /** Get Product. - * Product, Service, Item + * Product, Service, Item */ - public int getM_Product_ID(); + public int getM_Product_ID(); /** Column name Name */ - public static final String COLUMNNAME_Name = "Name"; + public static final String COLUMNNAME_Name = "Name"; /** Set Name. - * Alphanumeric identifier of the entity + * Alphanumeric identifier of the entity */ - public void setName (String Name); + public void setName (String Name); /** Get Name. - * Alphanumeric identifier of the entity + * Alphanumeric identifier of the entity */ - public String getName(); + public String getName(); /** Column name Processing */ - public static final String COLUMNNAME_Processing = "Processing"; + public static final String COLUMNNAME_Processing = "Processing"; /** Set Process Now */ - public void setProcessing (boolean Processing); + public void setProcessing (boolean Processing); /** Get Process Now */ - public boolean isProcessing(); + public boolean isProcessing(); /** Column name ProductType */ - public static final String COLUMNNAME_ProductType = "ProductType"; + public static final String COLUMNNAME_ProductType = "ProductType"; /** Set Product Type. - * Type of product + * Type of product */ - public void setProductType (String ProductType); + public void setProductType (String ProductType); /** Get Product Type. - * Type of product + * Type of product */ - public String getProductType(); + public String getProductType(); /** Column name R_MailText_ID */ - public static final String COLUMNNAME_R_MailText_ID = "R_MailText_ID"; + public static final String COLUMNNAME_R_MailText_ID = "R_MailText_ID"; /** Set Mail Template. - * Text templates for mailings + * Text templates for mailings */ - public void setR_MailText_ID (int R_MailText_ID); + public void setR_MailText_ID (int R_MailText_ID); /** Get Mail Template. - * Text templates for mailings + * Text templates for mailings */ - public int getR_MailText_ID(); + public int getR_MailText_ID(); - public I_R_MailText getI_R_MailText() throws Exception; + public I_R_MailText getR_MailText() throws Exception; /** Column name SKU */ - public static final String COLUMNNAME_SKU = "SKU"; + public static final String COLUMNNAME_SKU = "SKU"; /** Set SKU. - * Stock Keeping Unit + * Stock Keeping Unit */ - public void setSKU (String SKU); + public void setSKU (String SKU); /** Get SKU. - * Stock Keeping Unit + * Stock Keeping Unit */ - public String getSKU(); + public String getSKU(); /** Column name S_ExpenseType_ID */ - public static final String COLUMNNAME_S_ExpenseType_ID = "S_ExpenseType_ID"; + public static final String COLUMNNAME_S_ExpenseType_ID = "S_ExpenseType_ID"; /** Set Expense Type. - * Expense report type + * Expense report type */ - public void setS_ExpenseType_ID (int S_ExpenseType_ID); + public void setS_ExpenseType_ID (int S_ExpenseType_ID); /** Get Expense Type. - * Expense report type + * Expense report type */ - public int getS_ExpenseType_ID(); + public int getS_ExpenseType_ID(); - public I_S_ExpenseType getI_S_ExpenseType() throws Exception; + public I_S_ExpenseType getS_ExpenseType() throws Exception; /** Column name S_Resource_ID */ - public static final String COLUMNNAME_S_Resource_ID = "S_Resource_ID"; + public static final String COLUMNNAME_S_Resource_ID = "S_Resource_ID"; /** Set Resource. - * Resource + * Resource */ - public void setS_Resource_ID (int S_Resource_ID); + public void setS_Resource_ID (int S_Resource_ID); /** Get Resource. - * Resource + * Resource */ - public int getS_Resource_ID(); + public int getS_Resource_ID(); - public I_S_Resource getI_S_Resource() throws Exception; + public I_S_Resource getS_Resource() throws Exception; /** Column name SalesRep_ID */ - public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; + public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; /** Set Sales Representative. - * Sales Representative or Company Agent + * Sales Representative or Company Agent */ - public void setSalesRep_ID (int SalesRep_ID); + public void setSalesRep_ID (int SalesRep_ID); /** Get Sales Representative. - * Sales Representative or Company Agent + * Sales Representative or Company Agent */ - public int getSalesRep_ID(); + public int getSalesRep_ID(); /** Column name ShelfDepth */ - public static final String COLUMNNAME_ShelfDepth = "ShelfDepth"; + public static final String COLUMNNAME_ShelfDepth = "ShelfDepth"; /** Set Shelf Depth. - * Shelf depth required + * Shelf depth required */ - public void setShelfDepth (int ShelfDepth); + public void setShelfDepth (int ShelfDepth); /** Get Shelf Depth. - * Shelf depth required + * Shelf depth required */ - public int getShelfDepth(); + public int getShelfDepth(); /** Column name ShelfHeight */ - public static final String COLUMNNAME_ShelfHeight = "ShelfHeight"; + public static final String COLUMNNAME_ShelfHeight = "ShelfHeight"; /** Set Shelf Height. - * Shelf height required + * Shelf height required */ - public void setShelfHeight (int ShelfHeight); + public void setShelfHeight (int ShelfHeight); /** Get Shelf Height. - * Shelf height required + * Shelf height required */ - public int getShelfHeight(); + public int getShelfHeight(); /** Column name ShelfWidth */ - public static final String COLUMNNAME_ShelfWidth = "ShelfWidth"; + public static final String COLUMNNAME_ShelfWidth = "ShelfWidth"; /** Set Shelf Width. - * Shelf width required + * Shelf width required */ - public void setShelfWidth (int ShelfWidth); + public void setShelfWidth (int ShelfWidth); /** Get Shelf Width. - * Shelf width required + * Shelf width required */ - public int getShelfWidth(); + public int getShelfWidth(); /** Column name UPC */ - public static final String COLUMNNAME_UPC = "UPC"; + public static final String COLUMNNAME_UPC = "UPC"; /** Set UPC/EAN. - * Bar Code (Universal Product Code or its superset European Article Number) + * Bar Code (Universal Product Code or its superset European Article Number) */ - public void setUPC (String UPC); + public void setUPC (String UPC); /** Get UPC/EAN. - * Bar Code (Universal Product Code or its superset European Article Number) + * Bar Code (Universal Product Code or its superset European Article Number) */ - public String getUPC(); + public String getUPC(); /** Column name UnitsPerPallet */ - public static final String COLUMNNAME_UnitsPerPallet = "UnitsPerPallet"; + public static final String COLUMNNAME_UnitsPerPallet = "UnitsPerPallet"; /** Set Units Per Pallet. - * Units Per Pallet + * Units Per Pallet */ - public void setUnitsPerPallet (int UnitsPerPallet); + public void setUnitsPerPallet (int UnitsPerPallet); /** Get Units Per Pallet. - * Units Per Pallet + * Units Per Pallet */ - public int getUnitsPerPallet(); + public int getUnitsPerPallet(); /** Column name Value */ - public static final String COLUMNNAME_Value = "Value"; + public static final String COLUMNNAME_Value = "Value"; /** Set Search Key. - * Search key for the record in the format required - must be unique + * Search key for the record in the format required - must be unique */ - public void setValue (String Value); + public void setValue (String Value); /** Get Search Key. - * Search key for the record in the format required - must be unique + * Search key for the record in the format required - must be unique */ - public String getValue(); + public String getValue(); /** Column name VersionNo */ - public static final String COLUMNNAME_VersionNo = "VersionNo"; + public static final String COLUMNNAME_VersionNo = "VersionNo"; /** Set Version No. - * Version Number + * Version Number */ - public void setVersionNo (String VersionNo); + public void setVersionNo (String VersionNo); /** Get Version No. - * Version Number + * Version Number */ - public String getVersionNo(); + public String getVersionNo(); /** Column name Volume */ - public static final String COLUMNNAME_Volume = "Volume"; + public static final String COLUMNNAME_Volume = "Volume"; /** Set Volume. - * Volume of a product + * Volume of a product */ - public void setVolume (BigDecimal Volume); + public void setVolume (BigDecimal Volume); /** Get Volume. - * Volume of a product + * Volume of a product */ - public BigDecimal getVolume(); + public BigDecimal getVolume(); /** Column name Weight */ - public static final String COLUMNNAME_Weight = "Weight"; + public static final String COLUMNNAME_Weight = "Weight"; /** Set Weight. - * Weight of a product + * Weight of a product */ - public void setWeight (BigDecimal Weight); + public void setWeight (BigDecimal Weight); /** Get Weight. - * Weight of a product + * Weight of a product */ - public BigDecimal getWeight(); -} + public BigDecimal getWeight(); +} diff --git a/base/src/org/compiere/model/X_AD_PrintFormat.java b/base/src/org/compiere/model/X_AD_PrintFormat.java index 388ca6273a..2470efc07f 100644 --- a/base/src/org/compiere/model/X_AD_PrintFormat.java +++ b/base/src/org/compiere/model/X_AD_PrintFormat.java @@ -14,579 +14,627 @@ * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ -/** Generated Model - DO NOT CHANGE */ -package org.compiere.model; - -import java.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 implements I_AD_PrintFormat, I_Persistent -{ - - /** - * - */ - 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; - } +/** Generated Model - DO NOT CHANGE */ +package org.compiere.model; -/** 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 (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); - } +import java.lang.reflect.Constructor; +import java.sql.ResultSet; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.KeyNamePair; + +/** Generated Model for AD_PrintFormat + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persistent +{ + + /** + * + */ + 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 getAD_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 getAD_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 getAD_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 getAD_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 getAD_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 getAD_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 Args. + @param Args Args */ + public void setArgs (String Args) + { + + if (Args != null && Args.length() > 510) + { + log.warning("Length > 510 - truncated"); + Args = Args.substring(0, 509); + } + set_Value (COLUMNNAME_Args, Args); + } + + /** Get Args. + @return Args */ + public String getArgs () + { + return (String)get_Value(COLUMNNAME_Args); + } + + /** Set ClassName. + @param ClassName ClassName */ + public void setClassName (String ClassName) + { + + if (ClassName != null && ClassName.length() > 240) + { + log.warning("Length > 240 - truncated"); + ClassName = ClassName.substring(0, 239); + } + set_Value (COLUMNNAME_ClassName, ClassName); + } + + /** Get ClassName. + @return ClassName */ + public String getClassName () + { + return (String)get_Value(COLUMNNAME_ClassName); + } + + /** 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 (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_Role.java b/base/src/org/compiere/model/X_AD_Role.java index 63a7bcf0da..3b5759663b 100644 --- a/base/src/org/compiere/model/X_AD_Role.java +++ b/base/src/org/compiere/model/X_AD_Role.java @@ -14,914 +14,958 @@ * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ -/** Generated Model - DO NOT CHANGE */ -package org.compiere.model; - -import java.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 implements I_AD_Role, I_Persistent -{ - - /** - * - */ - 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(); - } +/** Generated Model - DO NOT CHANGE */ +package org.compiere.model; -/** 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 (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(); - } +import java.lang.reflect.Constructor; +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; + +/** 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 +{ + + /** + * + */ + 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 (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 (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)); + } -/** 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 (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)); - } - + @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)); - } - + @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)); - } - + @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)); - } - + @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)); - } - + @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)); - } - + @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)); - } - + @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)); - } - + @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)); - } - + @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)); - } - + @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(); - } + @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; + } -/** 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 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 (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; - } + /** Set Approval Amount. + @param AmtApproval + The approval amount limit for this role + */ + public void setAmtApproval (BigDecimal AmtApproval) + { + set_Value (COLUMNNAME_AmtApproval, AmtApproval); + } -/** 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 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 (COLUMNNAME_PreferenceType, PreferenceType); - } - - /** Get Preference Level. - @return Determines what preferences the user can set - */ - public String getPreferenceType () - { - return (String)get_Value(COLUMNNAME_PreferenceType); - } + /** 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; + } -/** 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 (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(); - } + public I_C_Currency getC_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; + } -/** 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 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 (COLUMNNAME_UserLevel, UserLevel); - } - - /** Get User Level. - @return System Client Organization - */ - public String getUserLevel () - { - return (String)get_Value(COLUMNNAME_UserLevel); - } + /** 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 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 (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"; + /** Organization = O */ + public static final String PREFERENCETYPE_Organization = "O"; + /** User = U */ + public static final String PREFERENCETYPE_User = "U"; + /** None = N */ + public static final String PREFERENCETYPE_None = "N"; + /** 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("O") || PreferenceType.equals("U") || PreferenceType.equals("N")); else throw new IllegalArgumentException ("PreferenceType Invalid value - " + PreferenceType + " - Reference_ID=330 - C - O - U - N"); + 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 (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 UserDiscount. + @param UserDiscount UserDiscount */ + public void setUserDiscount (BigDecimal UserDiscount) + { + set_Value (COLUMNNAME_UserDiscount, UserDiscount); + } + + /** Get UserDiscount. + @return UserDiscount */ + public BigDecimal getUserDiscount () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_UserDiscount); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** UserLevel AD_Reference_ID=226 */ + public static final int USERLEVEL_AD_Reference_ID=226; + /** System = S */ + public static final String USERLEVEL_System = "S "; + /** Client = C */ + public static final String USERLEVEL_Client = " C "; + /** Organization = O */ + public static final String USERLEVEL_Organization = " O"; + /** Client+Organization = CO */ + public static final String USERLEVEL_ClientPlusOrganization = " CO"; + /** 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("S ") || UserLevel.equals(" C ") || UserLevel.equals(" O") || UserLevel.equals(" CO")); else throw new IllegalArgumentException ("UserLevel Invalid value - " + UserLevel + " - Reference_ID=226 - S - C - O - CO"); + 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_User.java b/base/src/org/compiere/model/X_AD_User.java index 9f247ea53c..2191c56eda 100644 --- a/base/src/org/compiere/model/X_AD_User.java +++ b/base/src/org/compiere/model/X_AD_User.java @@ -14,763 +14,818 @@ * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ -/** Generated Model - DO NOT CHANGE */ -package org.compiere.model; - -import java.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 implements I_AD_User, I_Persistent -{ - - /** - * - */ - 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(); - } +/** Generated Model - DO NOT CHANGE */ +package org.compiere.model; -/** 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 (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); - } +import java.lang.reflect.Constructor; +import java.sql.ResultSet; +import java.sql.Timestamp; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.KeyNamePair; -/** 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 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 (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()); - } +/** 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 +{ + + /** + * + */ + 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 (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 getC_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 getC_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 getC_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 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 (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 = 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"; + /** EMail+Notice = B */ + public static final String NOTIFICATIONTYPE_EMailPlusNotice = "B"; + /** 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("E") || NotificationType.equals("N") || NotificationType.equals("X") || NotificationType.equals("B")); else throw new IllegalArgumentException ("NotificationType Invalid value - " + NotificationType + " - Reference_ID=344 - E - N - X - B"); + 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)); + } -/** 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 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 (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; - } + @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 (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); - } + /** 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 (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 UserPIN. + @param UserPIN UserPIN */ + public void setUserPIN (String UserPIN) + { + + if (UserPIN != null && UserPIN.length() > 20) + { + log.warning("Length > 20 - truncated"); + UserPIN = UserPIN.substring(0, 19); + } + set_Value (COLUMNNAME_UserPIN, UserPIN); + } + + /** Get UserPIN. + @return UserPIN */ + public String getUserPIN () + { + return (String)get_Value(COLUMNNAME_UserPIN); + } + + /** 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_C_Order.java b/base/src/org/compiere/model/X_C_Order.java index dbfe114c2a..96a3264e63 100644 --- a/base/src/org/compiere/model/X_C_Order.java +++ b/base/src/org/compiere/model/X_C_Order.java @@ -14,1865 +14,2051 @@ * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ -/** Generated Model - DO NOT CHANGE */ -package org.compiere.model; - -import java.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 implements I_C_Order, I_Persistent -{ - - /** - * - */ - 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(); - } +/** Generated Model - DO NOT CHANGE */ +package org.compiere.model; -/** 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 (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(); - } +import java.lang.reflect.Constructor; +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.sql.Timestamp; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; -/** 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 (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(); - } +/** 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 +{ -/** 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 (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(); - } + /** + * + */ + private static final long serialVersionUID = 1L; -/** 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 (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(); - } + /** 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); + } */ + } -/** 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 (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(); - } + /** Load Constructor */ + public X_C_Order (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } -/** 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 (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(); - } + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } -/** C_DocType_ID AD_Reference_ID=170 */ -public static final int C_DOCTYPE_ID_AD_Reference_ID=170; - 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); - } + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } -/** 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 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 (COLUMNNAME_DeliveryRule, DeliveryRule); - } - - /** Get Delivery Rule. - @return Defines the timing of Delivery - */ - public String getDeliveryRule () - { - return (String)get_Value(COLUMNNAME_DeliveryRule); - } + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Order[") + .append(get_ID()).append("]"); + return sb.toString(); + } -/** 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 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 (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); - } + /** 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 (COLUMNNAME_AD_OrgTrx_ID, null); + else + set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); + } -/** 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 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 (COLUMNNAME_DocAction, DocAction); - } - - /** Get Document Action. - @return The targeted status of the document - */ - public String getDocAction () - { - return (String)get_Value(COLUMNNAME_DocAction); - } + /** 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(); + } -/** 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 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 (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; - } + public I_AD_User getAD_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; + } -/** 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 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 (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; - } + /** 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 AmountRefunded. + @param AmountRefunded AmountRefunded */ + public void setAmountRefunded (BigDecimal AmountRefunded) + { + set_Value (COLUMNNAME_AmountRefunded, AmountRefunded); + } + + /** Get AmountRefunded. + @return AmountRefunded */ + public BigDecimal getAmountRefunded () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmountRefunded); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set AmountTendered. + @param AmountTendered AmountTendered */ + public void setAmountTendered (BigDecimal AmountTendered) + { + set_Value (COLUMNNAME_AmountTendered, AmountTendered); + } + + /** Get AmountTendered. + @return AmountTendered */ + public BigDecimal getAmountTendered () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmountTendered); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** 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 (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 (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 (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 getC_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 getC_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 getC_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 (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 getC_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 getC_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 (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; + public I_C_DocType getC_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_POS getC_POS() throws Exception + { + Class clazz = MTable.getClass(I_C_POS.Table_Name); + I_C_POS result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_POS)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_POS_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set C_POS_ID. + @param C_POS_ID C_POS_ID */ + public void setC_POS_ID (int C_POS_ID) + { + if (C_POS_ID <= 0) + set_Value (COLUMNNAME_C_POS_ID, null); + else + set_Value (COLUMNNAME_C_POS_ID, Integer.valueOf(C_POS_ID)); + } + + /** Get C_POS_ID. + @return C_POS_ID */ + public int getC_POS_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_POS_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_PaymentTerm getC_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 getC_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; + /** After Receipt = R */ + public static final String DELIVERYRULE_AfterReceipt = "R"; + /** Availability = A */ + public static final String DELIVERYRULE_Availability = "A"; + /** Complete Line = L */ + public static final String DELIVERYRULE_CompleteLine = "L"; + /** Complete Order = O */ + public static final String DELIVERYRULE_CompleteOrder = "O"; + /** Force = F */ + public static final String DELIVERYRULE_Force = "F"; + /** Manual = M */ + public static final String DELIVERYRULE_Manual = "M"; + /** 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("R") || DeliveryRule.equals("A") || DeliveryRule.equals("L") || DeliveryRule.equals("O") || DeliveryRule.equals("F") || DeliveryRule.equals("M")); else throw new IllegalArgumentException ("DeliveryRule Invalid value - " + DeliveryRule + " - Reference_ID=151 - R - A - L - O - F - M"); + 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; + /** Pickup = P */ + public static final String DELIVERYVIARULE_Pickup = "P"; + /** Delivery = D */ + public static final String DELIVERYVIARULE_Delivery = "D"; + /** 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("P") || DeliveryViaRule.equals("D") || DeliveryViaRule.equals("S")); else throw new IllegalArgumentException ("DeliveryViaRule Invalid value - " + DeliveryViaRule + " - Reference_ID=152 - P - D - 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; + /** Complete = CO */ + public static final String DOCACTION_Complete = "CO"; + /** Approve = AP */ + public static final String DOCACTION_Approve = "AP"; + /** Reject = RJ */ + public static final String DOCACTION_Reject = "RJ"; + /** Post = PO */ + public static final String DOCACTION_Post = "PO"; + /** Void = VO */ + public static final String DOCACTION_Void = "VO"; + /** Close = CL */ + public static final String DOCACTION_Close = "CL"; + /** Reverse - Correct = RC */ + public static final String DOCACTION_Reverse_Correct = "RC"; + /** Reverse - Accrual = RA */ + public static final String DOCACTION_Reverse_Accrual = "RA"; + /** Invalidate = IN */ + public static final String DOCACTION_Invalidate = "IN"; + /** Re-activate = RE */ + public static final String DOCACTION_Re_Activate = "RE"; + /** = -- */ + public static final String DOCACTION_None = "--"; + /** Prepare = PR */ + public static final String DOCACTION_Prepare = "PR"; + /** Unlock = XL */ + public static final String DOCACTION_Unlock = "XL"; + /** Wait Complete = WC */ + public static final String DOCACTION_WaitComplete = "WC"; + /** 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("CO") || DocAction.equals("AP") || DocAction.equals("RJ") || DocAction.equals("PO") || DocAction.equals("VO") || DocAction.equals("CL") || DocAction.equals("RC") || DocAction.equals("RA") || DocAction.equals("IN") || DocAction.equals("RE") || DocAction.equals("--") || DocAction.equals("PR") || DocAction.equals("XL") || DocAction.equals("WC")); else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - CO - AP - RJ - PO - VO - CL - RC - RA - IN - RE - -- - PR - XL - WC"); + 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; + /** Drafted = DR */ + public static final String DOCSTATUS_Drafted = "DR"; + /** Completed = CO */ + public static final String DOCSTATUS_Completed = "CO"; + /** Approved = AP */ + public static final String DOCSTATUS_Approved = "AP"; + /** Not Approved = NA */ + public static final String DOCSTATUS_NotApproved = "NA"; + /** Voided = VO */ + public static final String DOCSTATUS_Voided = "VO"; + /** Invalid = IN */ + public static final String DOCSTATUS_Invalid = "IN"; + /** Reversed = RE */ + public static final String DOCSTATUS_Reversed = "RE"; + /** Closed = CL */ + public static final String DOCSTATUS_Closed = "CL"; + /** Unknown = ?? */ + public static final String DOCSTATUS_Unknown = "??"; + /** In Progress = IP */ + public static final String DOCSTATUS_InProgress = "IP"; + /** Waiting Payment = WP */ + public static final String DOCSTATUS_WaitingPayment = "WP"; + /** Waiting Confirmation = WC */ + public static final String DOCSTATUS_WaitingConfirmation = "WC"; + /** 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("DR") || DocStatus.equals("CO") || DocStatus.equals("AP") || DocStatus.equals("NA") || DocStatus.equals("VO") || DocStatus.equals("IN") || DocStatus.equals("RE") || DocStatus.equals("CL") || DocStatus.equals("??") || DocStatus.equals("IP") || DocStatus.equals("WP") || DocStatus.equals("WC")); else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - DR - CO - AP - NA - VO - IN - RE - CL - ?? - IP - WP - WC"); + 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; + /** Freight included = I */ + public static final String FREIGHTCOSTRULE_FreightIncluded = "I"; + /** Fix price = F */ + public static final String FREIGHTCOSTRULE_FixPrice = "F"; + /** Calculated = C */ + public static final String FREIGHTCOSTRULE_Calculated = "C"; + /** 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("I") || FreightCostRule.equals("F") || FreightCostRule.equals("C") || FreightCostRule.equals("L")); else throw new IllegalArgumentException ("FreightCostRule Invalid value - " + FreightCostRule + " - Reference_ID=153 - I - F - C - 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 Order delivered = O */ + public static final String INVOICERULE_AfterOrderDelivered = "O"; + /** After Delivery = D */ + public static final String INVOICERULE_AfterDelivery = "D"; + /** Customer Schedule after Delivery = S */ + public static final String INVOICERULE_CustomerScheduleAfterDelivery = "S"; + /** Immediate = I */ + public static final String INVOICERULE_Immediate = "I"; + /** 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("O") || InvoiceRule.equals("D") || InvoiceRule.equals("S") || InvoiceRule.equals("I")); else throw new IllegalArgumentException ("InvoiceRule Invalid value - " + InvoiceRule + " - Reference_ID=150 - O - D - S - I"); + 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)); + } -/** 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 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 (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)); - } - + @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(); - } + @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; + } -/** 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 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 (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 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 getM_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 getM_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 getM_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 OrderType. + @param OrderType OrderType */ + public void setOrderType (String OrderType) + { + + if (OrderType != null && OrderType.length() > 510) + { + log.warning("Length > 510 - truncated"); + OrderType = OrderType.substring(0, 509); + } + set_Value (COLUMNNAME_OrderType, OrderType); + } + + /** Get OrderType. + @return OrderType */ + public String getOrderType () + { + return (String)get_Value(COLUMNNAME_OrderType); + } + + /** 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"; + /** Credit Card = K */ + public static final String PAYMENTRULE_CreditCard = "K"; + /** Direct Deposit = T */ + public static final String PAYMENTRULE_DirectDeposit = "T"; + /** Check = S */ + public static final String PAYMENTRULE_Check = "S"; + /** On Credit = P */ + public static final String PAYMENTRULE_OnCredit = "P"; + /** Direct Debit = D */ + public static final String PAYMENTRULE_DirectDebit = "D"; + /** 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("K") || PaymentRule.equals("T") || PaymentRule.equals("S") || PaymentRule.equals("P") || PaymentRule.equals("D")); else throw new IllegalArgumentException ("PaymentRule Invalid value - " + PaymentRule + " - Reference_ID=195 - B - K - T - S - P - D"); + 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; + /** 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"; + /** Urgent = 1 */ + public static final String PRIORITYRULE_Urgent = "1"; + /** 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("3") || PriorityRule.equals("5") || PriorityRule.equals("7") || PriorityRule.equals("1") || PriorityRule.equals("9")); else throw new IllegalArgumentException ("PriorityRule Invalid value - " + PriorityRule + " - Reference_ID=154 - 3 - 5 - 7 - 1 - 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)); + } -/** 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 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 (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; - } + @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 (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(); - } + /** 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 (COLUMNNAME_Ref_Order_ID, null); + else + set_Value (COLUMNNAME_Ref_Order_ID, Integer.valueOf(Ref_Order_ID)); + } -/** 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 (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; - } + /** 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(); + } -/** 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 (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(); - } + /** 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 (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); + } -/** 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 (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; - } + /** 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 (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 (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_Product.java b/base/src/org/compiere/model/X_M_Product.java index 8765e6454a..99b0d5eecd 100644 --- a/base/src/org/compiere/model/X_M_Product.java +++ b/base/src/org/compiere/model/X_M_Product.java @@ -14,1358 +14,1407 @@ * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ -/** Generated Model - DO NOT CHANGE */ -package org.compiere.model; - -import java.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 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(); - } +/** Generated Model - DO NOT CHANGE */ +package org.compiere.model; + +import java.lang.reflect.Constructor; +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.sql.Timestamp; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; + +/** 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 getC_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 getC_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 getC_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 Group1. + @param Group1 Group1 */ + public void setGroup1 (String Group1) + { + + if (Group1 != null && Group1.length() > 255) + { + log.warning("Length > 255 - truncated"); + Group1 = Group1.substring(0, 254); + } + set_Value (COLUMNNAME_Group1, Group1); + } + + /** Get Group1. + @return Group1 */ + public String getGroup1 () + { + return (String)get_Value(COLUMNNAME_Group1); + } + + /** Set Group2. + @param Group2 Group2 */ + public void setGroup2 (String Group2) + { + + if (Group2 != null && Group2.length() > 255) + { + log.warning("Length > 255 - truncated"); + Group2 = Group2.substring(0, 254); + } + set_Value (COLUMNNAME_Group2, Group2); + } + + /** Get Group2. + @return Group2 */ + public String getGroup2 () + { + return (String)get_Value(COLUMNNAME_Group2); + } + + /** 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 getM_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 getM_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; + public I_M_Product_Category getM_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)); + } -/** M_Product_Category_ID AD_Reference_ID=163 */ -public static final int M_PRODUCT_CATEGORY_ID_AD_Reference_ID=163; - 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; - } + @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 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 (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(); - } + /** ProductType AD_Reference_ID=270 */ + public static final int PRODUCTTYPE_AD_Reference_ID=270; + /** Item = I */ + public static final String PRODUCTTYPE_Item = "I"; + /** Service = S */ + public static final String PRODUCTTYPE_Service = "S"; + /** Resource = R */ + public static final String PRODUCTTYPE_Resource = "R"; + /** Expense type = E */ + public static final String PRODUCTTYPE_ExpenseType = "E"; + /** Online = O */ + public static final String PRODUCTTYPE_Online = "O"; + /** 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("I") || ProductType.equals("S") || ProductType.equals("R") || ProductType.equals("E") || ProductType.equals("O")); else throw new IllegalArgumentException ("ProductType Invalid value - " + ProductType + " - Reference_ID=270 - I - S - R - E - O"); + if (ProductType.length() > 1) + { + log.warning("Length > 1 - truncated"); + ProductType = ProductType.substring(0, 0); + } + set_Value (COLUMNNAME_ProductType, ProductType); + } -/** 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 (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; - } + /** Get Product Type. + @return Type of product + */ + public String getProductType () + { + return (String)get_Value(COLUMNNAME_ProductType); + } + + public I_R_MailText getR_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 getS_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 getS_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 (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