Initial commit of Posterita

This commit is contained in:
shameem_z 2007-09-20 06:22:48 +00:00
parent 9826e3c4df
commit ad6570afef
10 changed files with 6961 additions and 6507 deletions

View File

@ -32,14 +32,12 @@
**********************************************************************/ **********************************************************************/
package org.compiere.model; package org.compiere.model;
import java.util.*; import java.math.BigDecimal;
import java.sql.Timestamp; import org.compiere.util.KeyNamePair;
import java.math.*;
import org.compiere.util.*;
/** Generated Interface for AD_PrintFormat /** Generated Interface for AD_PrintFormat
* @author Trifon Trifonov (generated) * @author Trifon Trifonov (generated)
* @version Release 3.3.0 - 2007-08-24 11:39:25.484 * @version Release 3.3.0
*/ */
public interface I_AD_PrintFormat public interface I_AD_PrintFormat
{ {
@ -54,7 +52,7 @@ import org.compiere.util.*;
/** AccessLevel = 7 - System - Client - Org /** AccessLevel = 7 - System - Client - Org
*/ */
BigDecimal accessLevel = new BigDecimal(7); BigDecimal accessLevel = BigDecimal.valueOf(7);
/** Load Meta Data */ /** Load Meta Data */
@ -71,7 +69,7 @@ import org.compiere.util.*;
*/ */
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 */ /** 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";
@ -86,7 +84,7 @@ import org.compiere.util.*;
*/ */
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 */ /** 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";
@ -114,7 +112,7 @@ import org.compiere.util.*;
*/ */
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 */ /** 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";
@ -129,7 +127,7 @@ import org.compiere.util.*;
*/ */
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 */ /** 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";
@ -144,7 +142,7 @@ import org.compiere.util.*;
*/ */
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 */ /** 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";
@ -159,7 +157,25 @@ import org.compiere.util.*;
*/ */
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 */ /** Column name CreateCopy */
public static final String COLUMNNAME_CreateCopy = "CreateCopy"; public static final String COLUMNNAME_CreateCopy = "CreateCopy";

View File

@ -32,14 +32,12 @@
**********************************************************************/ **********************************************************************/
package org.compiere.model; package org.compiere.model;
import java.util.*; import java.math.BigDecimal;
import java.sql.Timestamp; import org.compiere.util.KeyNamePair;
import java.math.*;
import org.compiere.util.*;
/** Generated Interface for AD_Role /** Generated Interface for AD_Role
* @author Trifon Trifonov (generated) * @author Trifon Trifonov (generated)
* @version Release 3.3.0 - 2007-08-24 11:39:27.421 * @version Release 3.3.0
*/ */
public interface I_AD_Role public interface I_AD_Role
{ {
@ -54,7 +52,7 @@ import org.compiere.util.*;
/** AccessLevel = 6 - System - Client /** AccessLevel = 6 - System - Client
*/ */
BigDecimal accessLevel = new BigDecimal(6); BigDecimal accessLevel = BigDecimal.valueOf(6);
/** Load Meta Data */ /** Load Meta Data */
@ -222,7 +220,7 @@ import org.compiere.util.*;
*/ */
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 */ /** Column name ConfirmQueryRecords */
public static final String COLUMNNAME_ConfirmQueryRecords = "ConfirmQueryRecords"; public static final String COLUMNNAME_ConfirmQueryRecords = "ConfirmQueryRecords";
@ -458,6 +456,15 @@ import org.compiere.util.*;
*/ */
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 */ /** Column name UserLevel */
public static final String COLUMNNAME_UserLevel = "UserLevel"; public static final String COLUMNNAME_UserLevel = "UserLevel";

View File

@ -32,14 +32,13 @@
**********************************************************************/ **********************************************************************/
package org.compiere.model; package org.compiere.model;
import java.util.*; import java.math.BigDecimal;
import java.sql.Timestamp; import java.sql.Timestamp;
import java.math.*; import org.compiere.util.KeyNamePair;
import org.compiere.util.*;
/** Generated Interface for AD_User /** Generated Interface for AD_User
* @author Trifon Trifonov (generated) * @author Trifon Trifonov (generated)
* @version Release 3.3.0 - 2007-08-24 11:39:29.625 * @version Release 3.3.0
*/ */
public interface I_AD_User public interface I_AD_User
{ {
@ -54,7 +53,7 @@ import org.compiere.util.*;
/** AccessLevel = 7 - System - Client - Org /** AccessLevel = 7 - System - Client - Org
*/ */
BigDecimal accessLevel = new BigDecimal(7); BigDecimal accessLevel = BigDecimal.valueOf(7);
/** Load Meta Data */ /** Load Meta Data */
@ -123,7 +122,7 @@ import org.compiere.util.*;
*/ */
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 */ /** 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";
@ -138,7 +137,7 @@ import org.compiere.util.*;
*/ */
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 */ /** 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";
@ -153,7 +152,7 @@ import org.compiere.util.*;
*/ */
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 */ /** Column name Comments */
public static final String COLUMNNAME_Comments = "Comments"; public static final String COLUMNNAME_Comments = "Comments";
@ -424,6 +423,15 @@ import org.compiere.util.*;
*/ */
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 */ /** Column name Value */
public static final String COLUMNNAME_Value = "Value"; public static final String COLUMNNAME_Value = "Value";

View File

@ -32,14 +32,13 @@
**********************************************************************/ **********************************************************************/
package org.compiere.model; package org.compiere.model;
import java.util.*; import java.math.BigDecimal;
import java.sql.Timestamp; import java.sql.Timestamp;
import java.math.*; import org.compiere.util.KeyNamePair;
import org.compiere.util.*;
/** Generated Interface for C_Order /** Generated Interface for C_Order
* @author Trifon Trifonov (generated) * @author Trifon Trifonov (generated)
* @version Release 3.3.0 - 2007-08-24 11:39:41.468 * @version Release 3.3.0
*/ */
public interface I_C_Order public interface I_C_Order
{ {
@ -54,7 +53,7 @@ import org.compiere.util.*;
/** AccessLevel = 1 - Org /** AccessLevel = 1 - Org
*/ */
BigDecimal accessLevel = new BigDecimal(1); BigDecimal accessLevel = BigDecimal.valueOf(1);
/** Load Meta Data */ /** Load Meta Data */
@ -84,7 +83,25 @@ import org.compiere.util.*;
*/ */
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 */ /** 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";
@ -138,7 +155,7 @@ import org.compiere.util.*;
*/ */
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 */ /** 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";
@ -166,7 +183,7 @@ import org.compiere.util.*;
*/ */
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 */ /** 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";
@ -181,7 +198,7 @@ import org.compiere.util.*;
*/ */
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 */ /** 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";
@ -222,7 +239,7 @@ import org.compiere.util.*;
*/ */
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 */ /** 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";
@ -237,7 +254,7 @@ import org.compiere.util.*;
*/ */
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 */ /** 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";
@ -265,7 +282,7 @@ import org.compiere.util.*;
*/ */
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 */ /** 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";
@ -280,6 +297,17 @@ import org.compiere.util.*;
*/ */
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 */ /** 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";
@ -293,7 +321,7 @@ import org.compiere.util.*;
*/ */
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 */ /** 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";
@ -321,7 +349,7 @@ import org.compiere.util.*;
*/ */
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 */ /** Column name ChargeAmt */
public static final String COLUMNNAME_ChargeAmt = "ChargeAmt"; public static final String COLUMNNAME_ChargeAmt = "ChargeAmt";
@ -692,7 +720,7 @@ import org.compiere.util.*;
*/ */
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 */ /** 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";
@ -707,7 +735,7 @@ import org.compiere.util.*;
*/ */
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 */ /** 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";
@ -722,7 +750,16 @@ import org.compiere.util.*;
*/ */
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 */ /** Column name POReference */
public static final String COLUMNNAME_POReference = "POReference"; public static final String COLUMNNAME_POReference = "POReference";

View File

@ -32,14 +32,13 @@
**********************************************************************/ **********************************************************************/
package org.compiere.model; package org.compiere.model;
import java.util.*; import java.math.BigDecimal;
import java.sql.Timestamp; import java.sql.Timestamp;
import java.math.*; import org.compiere.util.KeyNamePair;
import org.compiere.util.*;
/** Generated Interface for M_Product /** Generated Interface for M_Product
* @author Trifon Trifonov (generated) * @author Trifon Trifonov (generated)
* @version Release 3.3.0 - 2007-08-24 11:39:51.312 * @version Release 3.3.0
*/ */
public interface I_M_Product public interface I_M_Product
{ {
@ -54,7 +53,7 @@ import org.compiere.util.*;
/** AccessLevel = 3 - Client - Org /** AccessLevel = 3 - Client - Org
*/ */
BigDecimal accessLevel = new BigDecimal(3); BigDecimal accessLevel = BigDecimal.valueOf(3);
/** Load Meta Data */ /** Load Meta Data */
@ -71,7 +70,7 @@ import org.compiere.util.*;
*/ */
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 */ /** 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";
@ -99,7 +98,7 @@ import org.compiere.util.*;
*/ */
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 */ /** 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";
@ -114,7 +113,7 @@ import org.compiere.util.*;
*/ */
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 */ /** Column name Classification */
public static final String COLUMNNAME_Classification = "Classification"; public static final String COLUMNNAME_Classification = "Classification";
@ -194,18 +193,23 @@ import org.compiere.util.*;
*/ */
public String getDocumentNote(); public String getDocumentNote();
/** Column name DownloadURL */ /** Column name Group1 */
public static final String COLUMNNAME_DownloadURL = "DownloadURL"; public static final String COLUMNNAME_Group1 = "Group1";
/** Set Download URL. /** Set Group1 */
* URL of the Download files public void setGroup1 (String Group1);
*/
public void setDownloadURL (String DownloadURL);
/** Get Download URL. /** Get Group1 */
* URL of the Download files public String getGroup1();
*/
public String getDownloadURL(); /** 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 */ /** Column name GuaranteeDays */
public static final String COLUMNNAME_GuaranteeDays = "GuaranteeDays"; public static final String COLUMNNAME_GuaranteeDays = "GuaranteeDays";
@ -441,7 +445,7 @@ import org.compiere.util.*;
*/ */
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 */ /** 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";
@ -456,7 +460,7 @@ import org.compiere.util.*;
*/ */
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 */ /** 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";
@ -484,7 +488,7 @@ import org.compiere.util.*;
*/ */
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 */ /** 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";
@ -547,7 +551,7 @@ import org.compiere.util.*;
*/ */
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 */ /** Column name SKU */
public static final String COLUMNNAME_SKU = "SKU"; public static final String COLUMNNAME_SKU = "SKU";
@ -575,7 +579,7 @@ import org.compiere.util.*;
*/ */
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 */ /** 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";
@ -590,7 +594,7 @@ import org.compiere.util.*;
*/ */
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 */ /** Column name SalesRep_ID */
public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID";

View File

@ -17,12 +17,11 @@
/** Generated Model - DO NOT CHANGE */ /** Generated Model - DO NOT CHANGE */
package org.compiere.model; package org.compiere.model;
import java.util.*;
import java.sql.*;
import java.math.*;
import java.lang.reflect.Constructor; import java.lang.reflect.Constructor;
import java.sql.ResultSet;
import java.util.Properties;
import java.util.logging.Level; import java.util.logging.Level;
import org.compiere.util.*; import org.compiere.util.KeyNamePair;
/** Generated Model for AD_PrintFormat /** Generated Model for AD_PrintFormat
* @author Adempiere (generated) * @author Adempiere (generated)
@ -39,7 +38,9 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste
public X_AD_PrintFormat (Properties ctx, int AD_PrintFormat_ID, String trxName) public X_AD_PrintFormat (Properties ctx, int AD_PrintFormat_ID, String trxName)
{ {
super (ctx, AD_PrintFormat_ID, trxName); super (ctx, AD_PrintFormat_ID, trxName);
/** if (AD_PrintFormat_ID == 0) { setAD_PrintColor_ID (0); /** if (AD_PrintFormat_ID == 0)
{
setAD_PrintColor_ID (0);
setAD_PrintFont_ID (0); setAD_PrintFont_ID (0);
setAD_PrintFormat_ID (0); setAD_PrintFormat_ID (0);
// 0 // 0
@ -85,7 +86,7 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste
return sb.toString(); return sb.toString();
} }
public I_AD_PrintColor getI_AD_PrintColor() throws Exception public I_AD_PrintColor getAD_PrintColor() throws Exception
{ {
Class<?> clazz = MTable.getClass(I_AD_PrintColor.Table_Name); Class<?> clazz = MTable.getClass(I_AD_PrintColor.Table_Name);
I_AD_PrintColor result = null; I_AD_PrintColor result = null;
@ -123,7 +124,7 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste
return ii.intValue(); return ii.intValue();
} }
public I_AD_PrintFont getI_AD_PrintFont() throws Exception public I_AD_PrintFont getAD_PrintFont() throws Exception
{ {
Class<?> clazz = MTable.getClass(I_AD_PrintFont.Table_Name); Class<?> clazz = MTable.getClass(I_AD_PrintFont.Table_Name);
I_AD_PrintFont result = null; I_AD_PrintFont result = null;
@ -183,7 +184,7 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste
return ii.intValue(); return ii.intValue();
} }
public I_AD_PrintPaper getI_AD_PrintPaper() throws Exception public I_AD_PrintPaper getAD_PrintPaper() throws Exception
{ {
Class<?> clazz = MTable.getClass(I_AD_PrintPaper.Table_Name); Class<?> clazz = MTable.getClass(I_AD_PrintPaper.Table_Name);
I_AD_PrintPaper result = null; I_AD_PrintPaper result = null;
@ -221,7 +222,7 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste
return ii.intValue(); return ii.intValue();
} }
public I_AD_PrintTableFormat getI_AD_PrintTableFormat() throws Exception public I_AD_PrintTableFormat getAD_PrintTableFormat() throws Exception
{ {
Class<?> clazz = MTable.getClass(I_AD_PrintTableFormat.Table_Name); Class<?> clazz = MTable.getClass(I_AD_PrintTableFormat.Table_Name);
I_AD_PrintTableFormat result = null; I_AD_PrintTableFormat result = null;
@ -243,7 +244,8 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste
*/ */
public void setAD_PrintTableFormat_ID (int AD_PrintTableFormat_ID) public void setAD_PrintTableFormat_ID (int AD_PrintTableFormat_ID)
{ {
if (AD_PrintTableFormat_ID <= 0) set_Value (COLUMNNAME_AD_PrintTableFormat_ID, null); if (AD_PrintTableFormat_ID <= 0)
set_Value (COLUMNNAME_AD_PrintTableFormat_ID, null);
else else
set_Value (COLUMNNAME_AD_PrintTableFormat_ID, Integer.valueOf(AD_PrintTableFormat_ID)); set_Value (COLUMNNAME_AD_PrintTableFormat_ID, Integer.valueOf(AD_PrintTableFormat_ID));
} }
@ -259,7 +261,7 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste
return ii.intValue(); return ii.intValue();
} }
public I_AD_ReportView getI_AD_ReportView() throws Exception public I_AD_ReportView getAD_ReportView() throws Exception
{ {
Class<?> clazz = MTable.getClass(I_AD_ReportView.Table_Name); Class<?> clazz = MTable.getClass(I_AD_ReportView.Table_Name);
I_AD_ReportView result = null; I_AD_ReportView result = null;
@ -281,7 +283,8 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste
*/ */
public void setAD_ReportView_ID (int AD_ReportView_ID) public void setAD_ReportView_ID (int AD_ReportView_ID)
{ {
if (AD_ReportView_ID <= 0) set_ValueNoCheck (COLUMNNAME_AD_ReportView_ID, null); if (AD_ReportView_ID <= 0)
set_ValueNoCheck (COLUMNNAME_AD_ReportView_ID, null);
else else
set_ValueNoCheck (COLUMNNAME_AD_ReportView_ID, Integer.valueOf(AD_ReportView_ID)); set_ValueNoCheck (COLUMNNAME_AD_ReportView_ID, Integer.valueOf(AD_ReportView_ID));
} }
@ -297,7 +300,7 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste
return ii.intValue(); return ii.intValue();
} }
public I_AD_Table getI_AD_Table() throws Exception public I_AD_Table getAD_Table() throws Exception
{ {
Class<?> clazz = MTable.getClass(I_AD_Table.Table_Name); Class<?> clazz = MTable.getClass(I_AD_Table.Table_Name);
I_AD_Table result = null; I_AD_Table result = null;
@ -335,10 +338,51 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste
return ii.intValue(); 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. /** Set Create Copy.
@param CreateCopy Create Copy */ @param CreateCopy Create Copy */
public void setCreateCopy (String CreateCopy) public void setCreateCopy (String CreateCopy)
{ {
if (CreateCopy != null && CreateCopy.length() > 1) if (CreateCopy != null && CreateCopy.length() > 1)
{ {
log.warning("Length > 1 - truncated"); log.warning("Length > 1 - truncated");
@ -360,6 +404,7 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste
*/ */
public void setDescription (String Description) public void setDescription (String Description)
{ {
if (Description != null && Description.length() > 255) if (Description != null && Description.length() > 255)
{ {
log.warning("Length > 255 - truncated"); log.warning("Length > 255 - truncated");
@ -520,7 +565,8 @@ public static final int JASPERPROCESS_ID_AD_Reference_ID=400;
*/ */
public void setJasperProcess_ID (int JasperProcess_ID) public void setJasperProcess_ID (int JasperProcess_ID)
{ {
if (JasperProcess_ID <= 0) set_Value (COLUMNNAME_JasperProcess_ID, null); if (JasperProcess_ID <= 0)
set_Value (COLUMNNAME_JasperProcess_ID, null);
else else
set_Value (COLUMNNAME_JasperProcess_ID, Integer.valueOf(JasperProcess_ID)); set_Value (COLUMNNAME_JasperProcess_ID, Integer.valueOf(JasperProcess_ID));
} }
@ -544,6 +590,7 @@ public static final int JASPERPROCESS_ID_AD_Reference_ID=400;
{ {
if (Name == null) if (Name == null)
throw new IllegalArgumentException ("Name is mandatory."); throw new IllegalArgumentException ("Name is mandatory.");
if (Name.length() > 60) if (Name.length() > 60)
{ {
log.warning("Length > 60 - truncated"); log.warning("Length > 60 - truncated");
@ -574,6 +621,7 @@ public static final int JASPERPROCESS_ID_AD_Reference_ID=400;
*/ */
public void setPrinterName (String PrinterName) public void setPrinterName (String PrinterName)
{ {
if (PrinterName != null && PrinterName.length() > 40) if (PrinterName != null && PrinterName.length() > 40)
{ {
log.warning("Length > 40 - truncated"); log.warning("Length > 40 - truncated");

View File

@ -17,12 +17,13 @@
/** Generated Model - DO NOT CHANGE */ /** Generated Model - DO NOT CHANGE */
package org.compiere.model; package org.compiere.model;
import java.util.*;
import java.sql.*;
import java.math.*;
import java.lang.reflect.Constructor; import java.lang.reflect.Constructor;
import java.math.BigDecimal;
import java.sql.ResultSet;
import java.util.Properties;
import java.util.logging.Level; import java.util.logging.Level;
import org.compiere.util.*; import org.compiere.util.Env;
import org.compiere.util.KeyNamePair;
/** Generated Model for AD_Role /** Generated Model for AD_Role
* @author Adempiere (generated) * @author Adempiere (generated)
@ -39,7 +40,9 @@ public class X_AD_Role extends PO implements I_AD_Role, I_Persistent
public X_AD_Role (Properties ctx, int AD_Role_ID, String trxName) public X_AD_Role (Properties ctx, int AD_Role_ID, String trxName)
{ {
super (ctx, AD_Role_ID, trxName); super (ctx, AD_Role_ID, trxName);
/** if (AD_Role_ID == 0) { setAD_Role_ID (0); /** if (AD_Role_ID == 0)
{
setAD_Role_ID (0);
setConfirmQueryRecords (0); setConfirmQueryRecords (0);
// 0 // 0
setIsAccessAllOrgs (false); setIsAccessAllOrgs (false);
@ -130,7 +133,8 @@ public static final int AD_TREE_MENU_ID_AD_Reference_ID=184;
*/ */
public void setAD_Tree_Menu_ID (int AD_Tree_Menu_ID) 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); if (AD_Tree_Menu_ID <= 0)
set_Value (COLUMNNAME_AD_Tree_Menu_ID, null);
else else
set_Value (COLUMNNAME_AD_Tree_Menu_ID, Integer.valueOf(AD_Tree_Menu_ID)); set_Value (COLUMNNAME_AD_Tree_Menu_ID, Integer.valueOf(AD_Tree_Menu_ID));
} }
@ -154,7 +158,8 @@ public static final int AD_TREE_ORG_ID_AD_Reference_ID=184;
*/ */
public void setAD_Tree_Org_ID (int AD_Tree_Org_ID) 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); if (AD_Tree_Org_ID <= 0)
set_Value (COLUMNNAME_AD_Tree_Org_ID, null);
else else
set_Value (COLUMNNAME_AD_Tree_Org_ID, Integer.valueOf(AD_Tree_Org_ID)); set_Value (COLUMNNAME_AD_Tree_Org_ID, Integer.valueOf(AD_Tree_Org_ID));
} }
@ -421,7 +426,7 @@ public static final int AD_TREE_ORG_ID_AD_Reference_ID=184;
return bd; return bd;
} }
public I_C_Currency getI_C_Currency() throws Exception public I_C_Currency getC_Currency() throws Exception
{ {
Class<?> clazz = MTable.getClass(I_C_Currency.Table_Name); Class<?> clazz = MTable.getClass(I_C_Currency.Table_Name);
I_C_Currency result = null; I_C_Currency result = null;
@ -443,7 +448,8 @@ public static final int AD_TREE_ORG_ID_AD_Reference_ID=184;
*/ */
public void setC_Currency_ID (int C_Currency_ID) public void setC_Currency_ID (int C_Currency_ID)
{ {
if (C_Currency_ID <= 0) set_Value (COLUMNNAME_C_Currency_ID, null); if (C_Currency_ID <= 0)
set_Value (COLUMNNAME_C_Currency_ID, null);
else else
set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID));
} }
@ -480,10 +486,14 @@ public static final int AD_TREE_ORG_ID_AD_Reference_ID=184;
} }
/** ConnectionProfile AD_Reference_ID=364 */ /** ConnectionProfile AD_Reference_ID=364 */
public static final int CONNECTIONPROFILE_AD_Reference_ID=364;/** LAN = L */ public static final int CONNECTIONPROFILE_AD_Reference_ID=364;
public static final String CONNECTIONPROFILE_LAN = "L";/** Terminal Server = T */ /** LAN = L */
public static final String CONNECTIONPROFILE_TerminalServer = "T";/** VPN = V */ public static final String CONNECTIONPROFILE_LAN = "L";
public static final String CONNECTIONPROFILE_VPN = "V";/** WAN = W */ /** 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"; public static final String CONNECTIONPROFILE_WAN = "W";
/** Set Connection Profile. /** Set Connection Profile.
@param ConnectionProfile @param ConnectionProfile
@ -491,7 +501,9 @@ public static final String CONNECTIONPROFILE_WAN = "W";
*/ */
public void setConnectionProfile (String ConnectionProfile) 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)
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"); log.warning("Length > 1 - truncated");
ConnectionProfile = ConnectionProfile.substring(0, 0); ConnectionProfile = ConnectionProfile.substring(0, 0);
@ -513,6 +525,7 @@ if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProf
*/ */
public void setDescription (String Description) public void setDescription (String Description)
{ {
if (Description != null && Description.length() > 255) if (Description != null && Description.length() > 255)
{ {
log.warning("Length > 255 - truncated"); log.warning("Length > 255 - truncated");
@ -797,6 +810,7 @@ if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProf
{ {
if (Name == null) if (Name == null)
throw new IllegalArgumentException ("Name is mandatory."); throw new IllegalArgumentException ("Name is mandatory.");
if (Name.length() > 60) if (Name.length() > 60)
{ {
log.warning("Length > 60 - truncated"); log.warning("Length > 60 - truncated");
@ -846,18 +860,24 @@ if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProf
} }
/** PreferenceType AD_Reference_ID=330 */ /** PreferenceType AD_Reference_ID=330 */
public static final int PREFERENCETYPE_AD_Reference_ID=330;/** Client = C */ public static final int PREFERENCETYPE_AD_Reference_ID=330;
public static final String PREFERENCETYPE_Client = "C";/** None = N */ /** Client = C */
public static final String PREFERENCETYPE_None = "N";/** Organization = O */ public static final String PREFERENCETYPE_Client = "C";
public static final String PREFERENCETYPE_Organization = "O";/** User = U */ /** Organization = O */
public static final String PREFERENCETYPE_Organization = "O";
/** User = U */
public static final String PREFERENCETYPE_User = "U"; public static final String PREFERENCETYPE_User = "U";
/** None = N */
public static final String PREFERENCETYPE_None = "N";
/** Set Preference Level. /** Set Preference Level.
@param PreferenceType @param PreferenceType
Determines what preferences the user can set Determines what preferences the user can set
*/ */
public void setPreferenceType (String PreferenceType) 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) 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"); log.warning("Length > 1 - truncated");
PreferenceType = PreferenceType.substring(0, 0); PreferenceType = PreferenceType.substring(0, 0);
@ -881,7 +901,8 @@ public static final int SUPERVISOR_ID_AD_Reference_ID=286;
*/ */
public void setSupervisor_ID (int Supervisor_ID) public void setSupervisor_ID (int Supervisor_ID)
{ {
if (Supervisor_ID <= 0) set_Value (COLUMNNAME_Supervisor_ID, null); if (Supervisor_ID <= 0)
set_Value (COLUMNNAME_Supervisor_ID, null);
else else
set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID)); set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID));
} }
@ -897,19 +918,42 @@ public static final int SUPERVISOR_ID_AD_Reference_ID=286;
return ii.intValue(); 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 */ /** UserLevel AD_Reference_ID=226 */
public static final int USERLEVEL_AD_Reference_ID=226;/** Organization = O */ public static final int USERLEVEL_AD_Reference_ID=226;
public static final String USERLEVEL_Organization = " O";/** Client = C */ /** System = S */
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 "; 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. /** Set User Level.
@param UserLevel @param UserLevel
System Client Organization System Client Organization
*/ */
public void setUserLevel (String UserLevel) 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) 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"); log.warning("Length > 3 - truncated");
UserLevel = UserLevel.substring(0, 2); UserLevel = UserLevel.substring(0, 2);

View File

@ -17,12 +17,12 @@
/** Generated Model - DO NOT CHANGE */ /** Generated Model - DO NOT CHANGE */
package org.compiere.model; package org.compiere.model;
import java.util.*;
import java.sql.*;
import java.math.*;
import java.lang.reflect.Constructor; import java.lang.reflect.Constructor;
import java.sql.ResultSet;
import java.sql.Timestamp;
import java.util.Properties;
import java.util.logging.Level; import java.util.logging.Level;
import org.compiere.util.*; import org.compiere.util.KeyNamePair;
/** Generated Model for AD_User /** Generated Model for AD_User
* @author Adempiere (generated) * @author Adempiere (generated)
@ -39,7 +39,9 @@ public class X_AD_User extends PO implements I_AD_User, I_Persistent
public X_AD_User (Properties ctx, int AD_User_ID, String trxName) public X_AD_User (Properties ctx, int AD_User_ID, String trxName)
{ {
super (ctx, AD_User_ID, trxName); super (ctx, AD_User_ID, trxName);
/** if (AD_User_ID == 0) { setAD_User_ID (0); /** if (AD_User_ID == 0)
{
setAD_User_ID (0);
setIsFullBPAccess (true); setIsFullBPAccess (true);
// Y // Y
setName (null); setName (null);
@ -84,7 +86,8 @@ public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
*/ */
public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) public void setAD_OrgTrx_ID (int AD_OrgTrx_ID)
{ {
if (AD_OrgTrx_ID <= 0) set_Value (COLUMNNAME_AD_OrgTrx_ID, null); if (AD_OrgTrx_ID <= 0)
set_Value (COLUMNNAME_AD_OrgTrx_ID, null);
else else
set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID));
} }
@ -145,7 +148,8 @@ public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
*/ */
public void setC_BPartner_ID (int C_BPartner_ID) public void setC_BPartner_ID (int C_BPartner_ID)
{ {
if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); if (C_BPartner_ID <= 0)
set_Value (COLUMNNAME_C_BPartner_ID, null);
else else
set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID));
} }
@ -161,7 +165,7 @@ public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
return ii.intValue(); return ii.intValue();
} }
public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception public I_C_BPartner_Location getC_BPartner_Location() throws Exception
{ {
Class<?> clazz = MTable.getClass(I_C_BPartner_Location.Table_Name); Class<?> clazz = MTable.getClass(I_C_BPartner_Location.Table_Name);
I_C_BPartner_Location result = null; I_C_BPartner_Location result = null;
@ -183,7 +187,8 @@ public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
*/ */
public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) 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); if (C_BPartner_Location_ID <= 0)
set_Value (COLUMNNAME_C_BPartner_Location_ID, null);
else else
set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID));
} }
@ -199,7 +204,7 @@ public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
return ii.intValue(); return ii.intValue();
} }
public I_C_Greeting getI_C_Greeting() throws Exception public I_C_Greeting getC_Greeting() throws Exception
{ {
Class<?> clazz = MTable.getClass(I_C_Greeting.Table_Name); Class<?> clazz = MTable.getClass(I_C_Greeting.Table_Name);
I_C_Greeting result = null; I_C_Greeting result = null;
@ -221,7 +226,8 @@ public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
*/ */
public void setC_Greeting_ID (int C_Greeting_ID) public void setC_Greeting_ID (int C_Greeting_ID)
{ {
if (C_Greeting_ID <= 0) set_Value (COLUMNNAME_C_Greeting_ID, null); if (C_Greeting_ID <= 0)
set_Value (COLUMNNAME_C_Greeting_ID, null);
else else
set_Value (COLUMNNAME_C_Greeting_ID, Integer.valueOf(C_Greeting_ID)); set_Value (COLUMNNAME_C_Greeting_ID, Integer.valueOf(C_Greeting_ID));
} }
@ -237,7 +243,7 @@ public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
return ii.intValue(); return ii.intValue();
} }
public I_C_Job getI_C_Job() throws Exception public I_C_Job getC_Job() throws Exception
{ {
Class<?> clazz = MTable.getClass(I_C_Job.Table_Name); Class<?> clazz = MTable.getClass(I_C_Job.Table_Name);
I_C_Job result = null; I_C_Job result = null;
@ -259,7 +265,8 @@ public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
*/ */
public void setC_Job_ID (int C_Job_ID) public void setC_Job_ID (int C_Job_ID)
{ {
if (C_Job_ID <= 0) set_Value (COLUMNNAME_C_Job_ID, null); if (C_Job_ID <= 0)
set_Value (COLUMNNAME_C_Job_ID, null);
else else
set_Value (COLUMNNAME_C_Job_ID, Integer.valueOf(C_Job_ID)); set_Value (COLUMNNAME_C_Job_ID, Integer.valueOf(C_Job_ID));
} }
@ -281,6 +288,7 @@ public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
*/ */
public void setComments (String Comments) public void setComments (String Comments)
{ {
if (Comments != null && Comments.length() > 2000) if (Comments != null && Comments.length() > 2000)
{ {
log.warning("Length > 2000 - truncated"); log.warning("Length > 2000 - truncated");
@ -298,10 +306,14 @@ public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
} }
/** ConnectionProfile AD_Reference_ID=364 */ /** ConnectionProfile AD_Reference_ID=364 */
public static final int CONNECTIONPROFILE_AD_Reference_ID=364;/** LAN = L */ public static final int CONNECTIONPROFILE_AD_Reference_ID=364;
public static final String CONNECTIONPROFILE_LAN = "L";/** Terminal Server = T */ /** LAN = L */
public static final String CONNECTIONPROFILE_TerminalServer = "T";/** VPN = V */ public static final String CONNECTIONPROFILE_LAN = "L";
public static final String CONNECTIONPROFILE_VPN = "V";/** WAN = W */ /** 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"; public static final String CONNECTIONPROFILE_WAN = "W";
/** Set Connection Profile. /** Set Connection Profile.
@param ConnectionProfile @param ConnectionProfile
@ -309,7 +321,9 @@ public static final String CONNECTIONPROFILE_WAN = "W";
*/ */
public void setConnectionProfile (String ConnectionProfile) 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)
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"); log.warning("Length > 1 - truncated");
ConnectionProfile = ConnectionProfile.substring(0, 0); ConnectionProfile = ConnectionProfile.substring(0, 0);
@ -331,6 +345,7 @@ if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProf
*/ */
public void setDescription (String Description) public void setDescription (String Description)
{ {
if (Description != null && Description.length() > 255) if (Description != null && Description.length() > 255)
{ {
log.warning("Length > 255 - truncated"); log.warning("Length > 255 - truncated");
@ -353,6 +368,7 @@ if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProf
*/ */
public void setEMail (String EMail) public void setEMail (String EMail)
{ {
if (EMail != null && EMail.length() > 60) if (EMail != null && EMail.length() > 60)
{ {
log.warning("Length > 60 - truncated"); log.warning("Length > 60 - truncated");
@ -375,6 +391,7 @@ if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProf
*/ */
public void setEMailUser (String EMailUser) public void setEMailUser (String EMailUser)
{ {
if (EMailUser != null && EMailUser.length() > 60) if (EMailUser != null && EMailUser.length() > 60)
{ {
log.warning("Length > 60 - truncated"); log.warning("Length > 60 - truncated");
@ -397,6 +414,7 @@ if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProf
*/ */
public void setEMailUserPW (String EMailUserPW) public void setEMailUserPW (String EMailUserPW)
{ {
if (EMailUserPW != null && EMailUserPW.length() > 20) if (EMailUserPW != null && EMailUserPW.length() > 20)
{ {
log.warning("Length > 20 - truncated"); log.warning("Length > 20 - truncated");
@ -419,6 +437,7 @@ if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProf
*/ */
public void setEMailVerify (String EMailVerify) public void setEMailVerify (String EMailVerify)
{ {
if (EMailVerify != null && EMailVerify.length() > 40) if (EMailVerify != null && EMailVerify.length() > 40)
{ {
log.warning("Length > 40 - truncated"); log.warning("Length > 40 - truncated");
@ -458,6 +477,7 @@ if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProf
*/ */
public void setFax (String Fax) public void setFax (String Fax)
{ {
if (Fax != null && Fax.length() > 40) if (Fax != null && Fax.length() > 40)
{ {
log.warning("Length > 40 - truncated"); log.warning("Length > 40 - truncated");
@ -504,6 +524,7 @@ if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProf
*/ */
public void setLDAPUser (String LDAPUser) public void setLDAPUser (String LDAPUser)
{ {
if (LDAPUser != null && LDAPUser.length() > 60) if (LDAPUser != null && LDAPUser.length() > 60)
{ {
log.warning("Length > 60 - truncated"); log.warning("Length > 60 - truncated");
@ -543,6 +564,7 @@ if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProf
*/ */
public void setLastResult (String LastResult) public void setLastResult (String LastResult)
{ {
if (LastResult != null && LastResult.length() > 255) if (LastResult != null && LastResult.length() > 255)
{ {
log.warning("Length > 255 - truncated"); log.warning("Length > 255 - truncated");
@ -567,6 +589,7 @@ if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProf
{ {
if (Name == null) if (Name == null)
throw new IllegalArgumentException ("Name is mandatory."); throw new IllegalArgumentException ("Name is mandatory.");
if (Name.length() > 60) if (Name.length() > 60)
{ {
log.warning("Length > 60 - truncated"); log.warning("Length > 60 - truncated");
@ -592,18 +615,24 @@ if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProf
} }
/** NotificationType AD_Reference_ID=344 */ /** NotificationType AD_Reference_ID=344 */
public static final int NOTIFICATIONTYPE_AD_Reference_ID=344;/** EMail+Notice = B */ public static final int NOTIFICATIONTYPE_AD_Reference_ID=344;
public static final String NOTIFICATIONTYPE_EMailPlusNotice = "B";/** EMail = E */ /** EMail = E */
public static final String NOTIFICATIONTYPE_EMail = "E";/** Notice = N */ public static final String NOTIFICATIONTYPE_EMail = "E";
public static final String NOTIFICATIONTYPE_Notice = "N";/** None = X */ /** Notice = N */
public static final String NOTIFICATIONTYPE_Notice = "N";
/** None = X */
public static final String NOTIFICATIONTYPE_None = "X"; public static final String NOTIFICATIONTYPE_None = "X";
/** EMail+Notice = B */
public static final String NOTIFICATIONTYPE_EMailPlusNotice = "B";
/** Set Notification Type. /** Set Notification Type.
@param NotificationType @param NotificationType
Type of Notifications Type of Notifications
*/ */
public void setNotificationType (String NotificationType) 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) 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"); log.warning("Length > 1 - truncated");
NotificationType = NotificationType.substring(0, 0); NotificationType = NotificationType.substring(0, 0);
@ -625,6 +654,7 @@ if (NotificationType == null) throw new IllegalArgumentException ("NotificationT
*/ */
public void setPassword (String Password) public void setPassword (String Password)
{ {
if (Password != null && Password.length() > 40) if (Password != null && Password.length() > 40)
{ {
log.warning("Length > 40 - truncated"); log.warning("Length > 40 - truncated");
@ -647,6 +677,7 @@ if (NotificationType == null) throw new IllegalArgumentException ("NotificationT
*/ */
public void setPhone (String Phone) public void setPhone (String Phone)
{ {
if (Phone != null && Phone.length() > 40) if (Phone != null && Phone.length() > 40)
{ {
log.warning("Length > 40 - truncated"); log.warning("Length > 40 - truncated");
@ -669,6 +700,7 @@ if (NotificationType == null) throw new IllegalArgumentException ("NotificationT
*/ */
public void setPhone2 (String Phone2) public void setPhone2 (String Phone2)
{ {
if (Phone2 != null && Phone2.length() > 40) if (Phone2 != null && Phone2.length() > 40)
{ {
log.warning("Length > 40 - truncated"); log.warning("Length > 40 - truncated");
@ -714,7 +746,8 @@ public static final int SUPERVISOR_ID_AD_Reference_ID=110;
*/ */
public void setSupervisor_ID (int Supervisor_ID) public void setSupervisor_ID (int Supervisor_ID)
{ {
if (Supervisor_ID <= 0) set_Value (COLUMNNAME_Supervisor_ID, null); if (Supervisor_ID <= 0)
set_Value (COLUMNNAME_Supervisor_ID, null);
else else
set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID)); set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID));
} }
@ -736,6 +769,7 @@ public static final int SUPERVISOR_ID_AD_Reference_ID=110;
*/ */
public void setTitle (String Title) public void setTitle (String Title)
{ {
if (Title != null && Title.length() > 40) if (Title != null && Title.length() > 40)
{ {
log.warning("Length > 40 - truncated"); log.warning("Length > 40 - truncated");
@ -752,12 +786,33 @@ public static final int SUPERVISOR_ID_AD_Reference_ID=110;
return (String)get_Value(COLUMNNAME_Title); 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. /** Set Search Key.
@param Value @param Value
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)
{ {
if (Value != null && Value.length() > 40) if (Value != null && Value.length() > 40)
{ {
log.warning("Length > 40 - truncated"); log.warning("Length > 40 - truncated");

View File

@ -17,12 +17,14 @@
/** Generated Model - DO NOT CHANGE */ /** Generated Model - DO NOT CHANGE */
package org.compiere.model; package org.compiere.model;
import java.util.*;
import java.sql.*;
import java.math.*;
import java.lang.reflect.Constructor; 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 java.util.logging.Level;
import org.compiere.util.*; import org.compiere.util.Env;
import org.compiere.util.KeyNamePair;
/** Generated Model for C_Order /** Generated Model for C_Order
* @author Adempiere (generated) * @author Adempiere (generated)
@ -39,7 +41,9 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent
public X_C_Order (Properties ctx, int C_Order_ID, String trxName) public X_C_Order (Properties ctx, int C_Order_ID, String trxName)
{ {
super (ctx, C_Order_ID, trxName); super (ctx, C_Order_ID, trxName);
/** if (C_Order_ID == 0) { setC_BPartner_ID (0); /** if (C_Order_ID == 0)
{
setC_BPartner_ID (0);
setC_BPartner_Location_ID (0); setC_BPartner_Location_ID (0);
setC_Currency_ID (0); setC_Currency_ID (0);
// @C_Currency_ID@ // @C_Currency_ID@
@ -135,7 +139,8 @@ public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
*/ */
public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) public void setAD_OrgTrx_ID (int AD_OrgTrx_ID)
{ {
if (AD_OrgTrx_ID <= 0) set_Value (COLUMNNAME_AD_OrgTrx_ID, null); if (AD_OrgTrx_ID <= 0)
set_Value (COLUMNNAME_AD_OrgTrx_ID, null);
else else
set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID));
} }
@ -151,7 +156,7 @@ public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
return ii.intValue(); return ii.intValue();
} }
public I_AD_User getI_AD_User() throws Exception public I_AD_User getAD_User() throws Exception
{ {
Class<?> clazz = MTable.getClass(I_AD_User.Table_Name); Class<?> clazz = MTable.getClass(I_AD_User.Table_Name);
I_AD_User result = null; I_AD_User result = null;
@ -173,7 +178,8 @@ public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
*/ */
public void setAD_User_ID (int AD_User_ID) public void setAD_User_ID (int AD_User_ID)
{ {
if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); if (AD_User_ID <= 0)
set_Value (COLUMNNAME_AD_User_ID, null);
else else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
} }
@ -189,6 +195,40 @@ public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
return ii.intValue(); 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 */ /** Bill_BPartner_ID AD_Reference_ID=138 */
public static final int BILL_BPARTNER_ID_AD_Reference_ID=138; public static final int BILL_BPARTNER_ID_AD_Reference_ID=138;
/** Set Invoice Partner. /** Set Invoice Partner.
@ -197,7 +237,8 @@ public static final int BILL_BPARTNER_ID_AD_Reference_ID=138;
*/ */
public void setBill_BPartner_ID (int Bill_BPartner_ID) public void setBill_BPartner_ID (int Bill_BPartner_ID)
{ {
if (Bill_BPartner_ID <= 0) set_Value (COLUMNNAME_Bill_BPartner_ID, null); if (Bill_BPartner_ID <= 0)
set_Value (COLUMNNAME_Bill_BPartner_ID, null);
else else
set_Value (COLUMNNAME_Bill_BPartner_ID, Integer.valueOf(Bill_BPartner_ID)); set_Value (COLUMNNAME_Bill_BPartner_ID, Integer.valueOf(Bill_BPartner_ID));
} }
@ -221,7 +262,8 @@ public static final int BILL_LOCATION_ID_AD_Reference_ID=159;
*/ */
public void setBill_Location_ID (int Bill_Location_ID) public void setBill_Location_ID (int Bill_Location_ID)
{ {
if (Bill_Location_ID <= 0) set_Value (COLUMNNAME_Bill_Location_ID, null); if (Bill_Location_ID <= 0)
set_Value (COLUMNNAME_Bill_Location_ID, null);
else else
set_Value (COLUMNNAME_Bill_Location_ID, Integer.valueOf(Bill_Location_ID)); set_Value (COLUMNNAME_Bill_Location_ID, Integer.valueOf(Bill_Location_ID));
} }
@ -245,7 +287,8 @@ public static final int BILL_USER_ID_AD_Reference_ID=110;
*/ */
public void setBill_User_ID (int Bill_User_ID) public void setBill_User_ID (int Bill_User_ID)
{ {
if (Bill_User_ID <= 0) set_Value (COLUMNNAME_Bill_User_ID, null); if (Bill_User_ID <= 0)
set_Value (COLUMNNAME_Bill_User_ID, null);
else else
set_Value (COLUMNNAME_Bill_User_ID, Integer.valueOf(Bill_User_ID)); set_Value (COLUMNNAME_Bill_User_ID, Integer.valueOf(Bill_User_ID));
} }
@ -261,7 +304,7 @@ public static final int BILL_USER_ID_AD_Reference_ID=110;
return ii.intValue(); return ii.intValue();
} }
public I_C_Activity getI_C_Activity() throws Exception public I_C_Activity getC_Activity() throws Exception
{ {
Class<?> clazz = MTable.getClass(I_C_Activity.Table_Name); Class<?> clazz = MTable.getClass(I_C_Activity.Table_Name);
I_C_Activity result = null; I_C_Activity result = null;
@ -283,7 +326,8 @@ public static final int BILL_USER_ID_AD_Reference_ID=110;
*/ */
public void setC_Activity_ID (int C_Activity_ID) public void setC_Activity_ID (int C_Activity_ID)
{ {
if (C_Activity_ID <= 0) set_Value (COLUMNNAME_C_Activity_ID, null); if (C_Activity_ID <= 0)
set_Value (COLUMNNAME_C_Activity_ID, null);
else else
set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID));
} }
@ -321,7 +365,7 @@ public static final int BILL_USER_ID_AD_Reference_ID=110;
return ii.intValue(); return ii.intValue();
} }
public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception public I_C_BPartner_Location getC_BPartner_Location() throws Exception
{ {
Class<?> clazz = MTable.getClass(I_C_BPartner_Location.Table_Name); Class<?> clazz = MTable.getClass(I_C_BPartner_Location.Table_Name);
I_C_BPartner_Location result = null; I_C_BPartner_Location result = null;
@ -359,7 +403,7 @@ public static final int BILL_USER_ID_AD_Reference_ID=110;
return ii.intValue(); return ii.intValue();
} }
public I_C_Campaign getI_C_Campaign() throws Exception public I_C_Campaign getC_Campaign() throws Exception
{ {
Class<?> clazz = MTable.getClass(I_C_Campaign.Table_Name); Class<?> clazz = MTable.getClass(I_C_Campaign.Table_Name);
I_C_Campaign result = null; I_C_Campaign result = null;
@ -381,7 +425,8 @@ public static final int BILL_USER_ID_AD_Reference_ID=110;
*/ */
public void setC_Campaign_ID (int C_Campaign_ID) public void setC_Campaign_ID (int C_Campaign_ID)
{ {
if (C_Campaign_ID <= 0) set_Value (COLUMNNAME_C_Campaign_ID, null); if (C_Campaign_ID <= 0)
set_Value (COLUMNNAME_C_Campaign_ID, null);
else else
set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID));
} }
@ -403,7 +448,8 @@ public static final int BILL_USER_ID_AD_Reference_ID=110;
*/ */
public void setC_CashLine_ID (int C_CashLine_ID) public void setC_CashLine_ID (int C_CashLine_ID)
{ {
if (C_CashLine_ID <= 0) set_Value (COLUMNNAME_C_CashLine_ID, null); if (C_CashLine_ID <= 0)
set_Value (COLUMNNAME_C_CashLine_ID, null);
else else
set_Value (COLUMNNAME_C_CashLine_ID, Integer.valueOf(C_CashLine_ID)); set_Value (COLUMNNAME_C_CashLine_ID, Integer.valueOf(C_CashLine_ID));
} }
@ -427,7 +473,8 @@ public static final int C_CHARGE_ID_AD_Reference_ID=200;
*/ */
public void setC_Charge_ID (int C_Charge_ID) public void setC_Charge_ID (int C_Charge_ID)
{ {
if (C_Charge_ID <= 0) set_Value (COLUMNNAME_C_Charge_ID, null); if (C_Charge_ID <= 0)
set_Value (COLUMNNAME_C_Charge_ID, null);
else else
set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID));
} }
@ -443,7 +490,7 @@ public static final int C_CHARGE_ID_AD_Reference_ID=200;
return ii.intValue(); return ii.intValue();
} }
public I_C_ConversionType getI_C_ConversionType() throws Exception public I_C_ConversionType getC_ConversionType() throws Exception
{ {
Class<?> clazz = MTable.getClass(I_C_ConversionType.Table_Name); Class<?> clazz = MTable.getClass(I_C_ConversionType.Table_Name);
I_C_ConversionType result = null; I_C_ConversionType result = null;
@ -465,7 +512,8 @@ public static final int C_CHARGE_ID_AD_Reference_ID=200;
*/ */
public void setC_ConversionType_ID (int C_ConversionType_ID) public void setC_ConversionType_ID (int C_ConversionType_ID)
{ {
if (C_ConversionType_ID <= 0) set_Value (COLUMNNAME_C_ConversionType_ID, null); if (C_ConversionType_ID <= 0)
set_Value (COLUMNNAME_C_ConversionType_ID, null);
else else
set_Value (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID)); set_Value (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID));
} }
@ -481,7 +529,7 @@ public static final int C_CHARGE_ID_AD_Reference_ID=200;
return ii.intValue(); return ii.intValue();
} }
public I_C_Currency getI_C_Currency() throws Exception public I_C_Currency getC_Currency() throws Exception
{ {
Class<?> clazz = MTable.getClass(I_C_Currency.Table_Name); Class<?> clazz = MTable.getClass(I_C_Currency.Table_Name);
I_C_Currency result = null; I_C_Currency result = null;
@ -545,7 +593,7 @@ public static final int C_DOCTYPETARGET_ID_AD_Reference_ID=170;
/** C_DocType_ID AD_Reference_ID=170 */ /** C_DocType_ID AD_Reference_ID=170 */
public static final int 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 public I_C_DocType getC_DocType() throws Exception
{ {
Class<?> clazz = MTable.getClass(I_C_DocType.Table_Name); Class<?> clazz = MTable.getClass(I_C_DocType.Table_Name);
I_C_DocType result = null; I_C_DocType result = null;
@ -605,7 +653,43 @@ public static final int C_DOCTYPE_ID_AD_Reference_ID=170;
return ii.intValue(); return ii.intValue();
} }
public I_C_PaymentTerm getI_C_PaymentTerm() throws Exception 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); Class<?> clazz = MTable.getClass(I_C_PaymentTerm.Table_Name);
I_C_PaymentTerm result = null; I_C_PaymentTerm result = null;
@ -649,7 +733,8 @@ public static final int C_DOCTYPE_ID_AD_Reference_ID=170;
*/ */
public void setC_Payment_ID (int C_Payment_ID) public void setC_Payment_ID (int C_Payment_ID)
{ {
if (C_Payment_ID <= 0) set_Value (COLUMNNAME_C_Payment_ID, null); if (C_Payment_ID <= 0)
set_Value (COLUMNNAME_C_Payment_ID, null);
else else
set_Value (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID)); set_Value (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID));
} }
@ -665,7 +750,7 @@ public static final int C_DOCTYPE_ID_AD_Reference_ID=170;
return ii.intValue(); return ii.intValue();
} }
public I_C_Project getI_C_Project() throws Exception public I_C_Project getC_Project() throws Exception
{ {
Class<?> clazz = MTable.getClass(I_C_Project.Table_Name); Class<?> clazz = MTable.getClass(I_C_Project.Table_Name);
I_C_Project result = null; I_C_Project result = null;
@ -687,7 +772,8 @@ public static final int C_DOCTYPE_ID_AD_Reference_ID=170;
*/ */
public void setC_Project_ID (int C_Project_ID) public void setC_Project_ID (int C_Project_ID)
{ {
if (C_Project_ID <= 0) set_Value (COLUMNNAME_C_Project_ID, null); if (C_Project_ID <= 0)
set_Value (COLUMNNAME_C_Project_ID, null);
else else
set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID));
} }
@ -729,6 +815,7 @@ public static final int C_DOCTYPE_ID_AD_Reference_ID=170;
*/ */
public void setCopyFrom (String CopyFrom) public void setCopyFrom (String CopyFrom)
{ {
if (CopyFrom != null && CopyFrom.length() > 1) if (CopyFrom != null && CopyFrom.length() > 1)
{ {
log.warning("Length > 1 - truncated"); log.warning("Length > 1 - truncated");
@ -820,20 +907,28 @@ public static final int C_DOCTYPE_ID_AD_Reference_ID=170;
} }
/** DeliveryRule AD_Reference_ID=151 */ /** DeliveryRule AD_Reference_ID=151 */
public static final int DELIVERYRULE_AD_Reference_ID=151;/** Availability = A */ public static final int DELIVERYRULE_AD_Reference_ID=151;
public static final String DELIVERYRULE_Availability = "A";/** Force = F */ /** After Receipt = R */
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"; 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. /** Set Delivery Rule.
@param DeliveryRule @param DeliveryRule
Defines the timing of Delivery Defines the timing of Delivery
*/ */
public void setDeliveryRule (String DeliveryRule) 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) 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"); log.warning("Length > 1 - truncated");
DeliveryRule = DeliveryRule.substring(0, 0); DeliveryRule = DeliveryRule.substring(0, 0);
@ -850,9 +945,12 @@ if (DeliveryRule == null) throw new IllegalArgumentException ("DeliveryRule is m
} }
/** DeliveryViaRule AD_Reference_ID=152 */ /** DeliveryViaRule AD_Reference_ID=152 */
public static final int DELIVERYVIARULE_AD_Reference_ID=152;/** Delivery = D */ public static final int DELIVERYVIARULE_AD_Reference_ID=152;
public static final String DELIVERYVIARULE_Delivery = "D";/** Pickup = P */ /** Pickup = P */
public static final String DELIVERYVIARULE_Pickup = "P";/** Shipper = S */ 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"; public static final String DELIVERYVIARULE_Shipper = "S";
/** Set Delivery Via. /** Set Delivery Via.
@param DeliveryViaRule @param DeliveryViaRule
@ -860,7 +958,9 @@ public static final String DELIVERYVIARULE_Shipper = "S";
*/ */
public void setDeliveryViaRule (String DeliveryViaRule) 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) 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"); log.warning("Length > 1 - truncated");
DeliveryViaRule = DeliveryViaRule.substring(0, 0); DeliveryViaRule = DeliveryViaRule.substring(0, 0);
@ -882,6 +982,7 @@ if (DeliveryViaRule == null) throw new IllegalArgumentException ("DeliveryViaRul
*/ */
public void setDescription (String Description) public void setDescription (String Description)
{ {
if (Description != null && Description.length() > 255) if (Description != null && Description.length() > 255)
{ {
log.warning("Length > 255 - truncated"); log.warning("Length > 255 - truncated");
@ -899,28 +1000,44 @@ if (DeliveryViaRule == null) throw new IllegalArgumentException ("DeliveryViaRul
} }
/** DocAction AD_Reference_ID=135 */ /** DocAction AD_Reference_ID=135 */
public static final int DOCACTION_AD_Reference_ID=135;/** <None> = -- */ public static final int DOCACTION_AD_Reference_ID=135;
public static final String DOCACTION_None = "--";/** Approve = AP */ /** Complete = CO */
public static final String DOCACTION_Approve = "AP";/** Close = CL */ public static final String DOCACTION_Complete = "CO";
public static final String DOCACTION_Close = "CL";/** Complete = CO */ /** Approve = AP */
public static final String DOCACTION_Complete = "CO";/** Invalidate = IN */ public static final String DOCACTION_Approve = "AP";
public static final String DOCACTION_Invalidate = "IN";/** Post = PO */ /** Reject = RJ */
public static final String DOCACTION_Post = "PO";/** Prepare = PR */ public static final String DOCACTION_Reject = "RJ";
public static final String DOCACTION_Prepare = "PR";/** Reverse - Accrual = RA */ /** Post = PO */
public static final String DOCACTION_Reverse_Accrual = "RA";/** Reverse - Correct = RC */ public static final String DOCACTION_Post = "PO";
public static final String DOCACTION_Reverse_Correct = "RC";/** Re-activate = RE */ /** Void = VO */
public static final String DOCACTION_Re_Activate = "RE";/** Reject = RJ */ public static final String DOCACTION_Void = "VO";
public static final String DOCACTION_Reject = "RJ";/** Void = VO */ /** Close = CL */
public static final String DOCACTION_Void = "VO";/** Wait Complete = WC */ public static final String DOCACTION_Close = "CL";
public static final String DOCACTION_WaitComplete = "WC";/** Unlock = XL */ /** 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";
/** <None> = -- */
public static final String DOCACTION_None = "--";
/** Prepare = PR */
public static final String DOCACTION_Prepare = "PR";
/** Unlock = XL */
public static final String DOCACTION_Unlock = "XL"; public static final String DOCACTION_Unlock = "XL";
/** Wait Complete = WC */
public static final String DOCACTION_WaitComplete = "WC";
/** Set Document Action. /** Set Document Action.
@param DocAction @param DocAction
The targeted status of the document The targeted status of the document
*/ */
public void setDocAction (String DocAction) 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) 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"); log.warning("Length > 2 - truncated");
DocAction = DocAction.substring(0, 1); DocAction = DocAction.substring(0, 1);
@ -937,26 +1054,40 @@ if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandato
} }
/** DocStatus AD_Reference_ID=131 */ /** DocStatus AD_Reference_ID=131 */
public static final int DOCSTATUS_AD_Reference_ID=131;/** Unknown = ?? */ public static final int DOCSTATUS_AD_Reference_ID=131;
public static final String DOCSTATUS_Unknown = "??";/** Approved = AP */ /** Drafted = DR */
public static final String DOCSTATUS_Approved = "AP";/** Closed = CL */ public static final String DOCSTATUS_Drafted = "DR";
public static final String DOCSTATUS_Closed = "CL";/** Completed = CO */ /** Completed = CO */
public static final String DOCSTATUS_Completed = "CO";/** Drafted = DR */ public static final String DOCSTATUS_Completed = "CO";
public static final String DOCSTATUS_Drafted = "DR";/** Invalid = IN */ /** Approved = AP */
public static final String DOCSTATUS_Invalid = "IN";/** In Progress = IP */ public static final String DOCSTATUS_Approved = "AP";
public static final String DOCSTATUS_InProgress = "IP";/** Not Approved = NA */ /** Not Approved = NA */
public static final String DOCSTATUS_NotApproved = "NA";/** Reversed = RE */ public static final String DOCSTATUS_NotApproved = "NA";
public static final String DOCSTATUS_Reversed = "RE";/** Voided = VO */ /** Voided = VO */
public static final String DOCSTATUS_Voided = "VO";/** Waiting Confirmation = WC */ public static final String DOCSTATUS_Voided = "VO";
public static final String DOCSTATUS_WaitingConfirmation = "WC";/** Waiting Payment = WP */ /** 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"; public static final String DOCSTATUS_WaitingPayment = "WP";
/** Waiting Confirmation = WC */
public static final String DOCSTATUS_WaitingConfirmation = "WC";
/** Set Document Status. /** Set Document Status.
@param DocStatus @param DocStatus
The current status of the document The current status of the document
*/ */
public void setDocStatus (String DocStatus) 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) 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"); log.warning("Length > 2 - truncated");
DocStatus = DocStatus.substring(0, 1); DocStatus = DocStatus.substring(0, 1);
@ -980,6 +1111,7 @@ if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandato
{ {
if (DocumentNo == null) if (DocumentNo == null)
throw new IllegalArgumentException ("DocumentNo is mandatory."); throw new IllegalArgumentException ("DocumentNo is mandatory.");
if (DocumentNo.length() > 30) if (DocumentNo.length() > 30)
{ {
log.warning("Length > 30 - truncated"); log.warning("Length > 30 - truncated");
@ -1027,10 +1159,14 @@ if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandato
} }
/** FreightCostRule AD_Reference_ID=153 */ /** FreightCostRule AD_Reference_ID=153 */
public static final int FREIGHTCOSTRULE_AD_Reference_ID=153;/** Calculated = C */ public static final int FREIGHTCOSTRULE_AD_Reference_ID=153;
public static final String FREIGHTCOSTRULE_Calculated = "C";/** Fix price = F */ /** Freight included = I */
public static final String FREIGHTCOSTRULE_FixPrice = "F";/** Freight included = I */ public static final String FREIGHTCOSTRULE_FreightIncluded = "I";
public static final String FREIGHTCOSTRULE_FreightIncluded = "I";/** Line = L */ /** 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"; public static final String FREIGHTCOSTRULE_Line = "L";
/** Set Freight Cost Rule. /** Set Freight Cost Rule.
@param FreightCostRule @param FreightCostRule
@ -1038,7 +1174,9 @@ public static final String FREIGHTCOSTRULE_Line = "L";
*/ */
public void setFreightCostRule (String FreightCostRule) 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) 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"); log.warning("Length > 1 - truncated");
FreightCostRule = FreightCostRule.substring(0, 0); FreightCostRule = FreightCostRule.substring(0, 0);
@ -1077,18 +1215,24 @@ if (FreightCostRule == null) throw new IllegalArgumentException ("FreightCostRul
} }
/** InvoiceRule AD_Reference_ID=150 */ /** InvoiceRule AD_Reference_ID=150 */
public static final int INVOICERULE_AD_Reference_ID=150;/** After Delivery = D */ public static final int INVOICERULE_AD_Reference_ID=150;
public static final String INVOICERULE_AfterDelivery = "D";/** Immediate = I */ /** After Order delivered = O */
public static final String INVOICERULE_Immediate = "I";/** After Order delivered = O */ public static final String INVOICERULE_AfterOrderDelivered = "O";
public static final String INVOICERULE_AfterOrderDelivered = "O";/** Customer Schedule after Delivery = S */ /** After Delivery = D */
public static final String INVOICERULE_AfterDelivery = "D";
/** Customer Schedule after Delivery = S */
public static final String INVOICERULE_CustomerScheduleAfterDelivery = "S"; public static final String INVOICERULE_CustomerScheduleAfterDelivery = "S";
/** Immediate = I */
public static final String INVOICERULE_Immediate = "I";
/** Set Invoice Rule. /** Set Invoice Rule.
@param InvoiceRule @param InvoiceRule
Frequency and method of invoicing Frequency and method of invoicing
*/ */
public void setInvoiceRule (String InvoiceRule) 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) 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"); log.warning("Length > 1 - truncated");
InvoiceRule = InvoiceRule.substring(0, 0); InvoiceRule = InvoiceRule.substring(0, 0);
@ -1386,7 +1530,7 @@ if (InvoiceRule == null) throw new IllegalArgumentException ("InvoiceRule is man
return false; return false;
} }
public I_M_PriceList getI_M_PriceList() throws Exception public I_M_PriceList getM_PriceList() throws Exception
{ {
Class<?> clazz = MTable.getClass(I_M_PriceList.Table_Name); Class<?> clazz = MTable.getClass(I_M_PriceList.Table_Name);
I_M_PriceList result = null; I_M_PriceList result = null;
@ -1424,7 +1568,7 @@ if (InvoiceRule == null) throw new IllegalArgumentException ("InvoiceRule is man
return ii.intValue(); return ii.intValue();
} }
public I_M_Shipper getI_M_Shipper() throws Exception public I_M_Shipper getM_Shipper() throws Exception
{ {
Class<?> clazz = MTable.getClass(I_M_Shipper.Table_Name); Class<?> clazz = MTable.getClass(I_M_Shipper.Table_Name);
I_M_Shipper result = null; I_M_Shipper result = null;
@ -1446,7 +1590,8 @@ if (InvoiceRule == null) throw new IllegalArgumentException ("InvoiceRule is man
*/ */
public void setM_Shipper_ID (int M_Shipper_ID) public void setM_Shipper_ID (int M_Shipper_ID)
{ {
if (M_Shipper_ID <= 0) set_Value (COLUMNNAME_M_Shipper_ID, null); if (M_Shipper_ID <= 0)
set_Value (COLUMNNAME_M_Shipper_ID, null);
else else
set_Value (COLUMNNAME_M_Shipper_ID, Integer.valueOf(M_Shipper_ID)); set_Value (COLUMNNAME_M_Shipper_ID, Integer.valueOf(M_Shipper_ID));
} }
@ -1462,7 +1607,7 @@ if (InvoiceRule == null) throw new IllegalArgumentException ("InvoiceRule is man
return ii.intValue(); return ii.intValue();
} }
public I_M_Warehouse getI_M_Warehouse() throws Exception public I_M_Warehouse getM_Warehouse() throws Exception
{ {
Class<?> clazz = MTable.getClass(I_M_Warehouse.Table_Name); Class<?> clazz = MTable.getClass(I_M_Warehouse.Table_Name);
I_M_Warehouse result = null; I_M_Warehouse result = null;
@ -1500,12 +1645,33 @@ if (InvoiceRule == null) throw new IllegalArgumentException ("InvoiceRule is man
return ii.intValue(); 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. /** Set Order Reference.
@param POReference @param POReference
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)
{ {
if (POReference != null && POReference.length() > 20) if (POReference != null && POReference.length() > 20)
{ {
log.warning("Length > 20 - truncated"); log.warning("Length > 20 - truncated");
@ -1528,7 +1694,8 @@ if (InvoiceRule == null) throw new IllegalArgumentException ("InvoiceRule is man
*/ */
public void setPay_BPartner_ID (int Pay_BPartner_ID) public void setPay_BPartner_ID (int Pay_BPartner_ID)
{ {
if (Pay_BPartner_ID <= 0) set_Value (COLUMNNAME_Pay_BPartner_ID, null); if (Pay_BPartner_ID <= 0)
set_Value (COLUMNNAME_Pay_BPartner_ID, null);
else else
set_Value (COLUMNNAME_Pay_BPartner_ID, Integer.valueOf(Pay_BPartner_ID)); set_Value (COLUMNNAME_Pay_BPartner_ID, Integer.valueOf(Pay_BPartner_ID));
} }
@ -1550,7 +1717,8 @@ if (InvoiceRule == null) throw new IllegalArgumentException ("InvoiceRule is man
*/ */
public void setPay_Location_ID (int Pay_Location_ID) public void setPay_Location_ID (int Pay_Location_ID)
{ {
if (Pay_Location_ID <= 0) set_Value (COLUMNNAME_Pay_Location_ID, null); if (Pay_Location_ID <= 0)
set_Value (COLUMNNAME_Pay_Location_ID, null);
else else
set_Value (COLUMNNAME_Pay_Location_ID, Integer.valueOf(Pay_Location_ID)); set_Value (COLUMNNAME_Pay_Location_ID, Integer.valueOf(Pay_Location_ID));
} }
@ -1567,20 +1735,28 @@ if (InvoiceRule == null) throw new IllegalArgumentException ("InvoiceRule is man
} }
/** PaymentRule AD_Reference_ID=195 */ /** PaymentRule AD_Reference_ID=195 */
public static final int PAYMENTRULE_AD_Reference_ID=195;/** Cash = B */ public static final int PAYMENTRULE_AD_Reference_ID=195;
public static final String PAYMENTRULE_Cash = "B";/** Direct Debit = D */ /** Cash = B */
public static final String PAYMENTRULE_DirectDebit = "D";/** Credit Card = K */ public static final String PAYMENTRULE_Cash = "B";
public static final String PAYMENTRULE_CreditCard = "K";/** On Credit = P */ /** Credit Card = K */
public static final String PAYMENTRULE_OnCredit = "P";/** Check = S */ public static final String PAYMENTRULE_CreditCard = "K";
public static final String PAYMENTRULE_Check = "S";/** Direct Deposit = T */ /** Direct Deposit = T */
public static final String PAYMENTRULE_DirectDeposit = "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. /** Set Payment Rule.
@param PaymentRule @param PaymentRule
How you pay the invoice How you pay the invoice
*/ */
public void setPaymentRule (String PaymentRule) 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) 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"); log.warning("Length > 1 - truncated");
PaymentRule = PaymentRule.substring(0, 0); PaymentRule = PaymentRule.substring(0, 0);
@ -1621,11 +1797,16 @@ if (PaymentRule == null) throw new IllegalArgumentException ("PaymentRule is man
} }
/** PriorityRule AD_Reference_ID=154 */ /** PriorityRule AD_Reference_ID=154 */
public static final int PRIORITYRULE_AD_Reference_ID=154;/** Urgent = 1 */ public static final int PRIORITYRULE_AD_Reference_ID=154;
public static final String PRIORITYRULE_Urgent = "1";/** High = 3 */ /** High = 3 */
public static final String PRIORITYRULE_High = "3";/** Medium = 5 */ public static final String PRIORITYRULE_High = "3";
public static final String PRIORITYRULE_Medium = "5";/** Low = 7 */ /** Medium = 5 */
public static final String PRIORITYRULE_Low = "7";/** Minor = 9 */ 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"; public static final String PRIORITYRULE_Minor = "9";
/** Set Priority. /** Set Priority.
@param PriorityRule @param PriorityRule
@ -1633,7 +1814,9 @@ public static final String PRIORITYRULE_Minor = "9";
*/ */
public void setPriorityRule (String PriorityRule) 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) 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"); log.warning("Length > 1 - truncated");
PriorityRule = PriorityRule.substring(0, 0); PriorityRule = PriorityRule.substring(0, 0);
@ -1702,7 +1885,8 @@ public static final int REF_ORDER_ID_AD_Reference_ID=290;
*/ */
public void setRef_Order_ID (int Ref_Order_ID) public void setRef_Order_ID (int Ref_Order_ID)
{ {
if (Ref_Order_ID <= 0) set_Value (COLUMNNAME_Ref_Order_ID, null); if (Ref_Order_ID <= 0)
set_Value (COLUMNNAME_Ref_Order_ID, null);
else else
set_Value (COLUMNNAME_Ref_Order_ID, Integer.valueOf(Ref_Order_ID)); set_Value (COLUMNNAME_Ref_Order_ID, Integer.valueOf(Ref_Order_ID));
} }
@ -1796,7 +1980,8 @@ public static final int USER1_ID_AD_Reference_ID=134;
*/ */
public void setUser1_ID (int User1_ID) public void setUser1_ID (int User1_ID)
{ {
if (User1_ID <= 0) set_Value (COLUMNNAME_User1_ID, null); if (User1_ID <= 0)
set_Value (COLUMNNAME_User1_ID, null);
else else
set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID)); set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID));
} }
@ -1820,7 +2005,8 @@ public static final int USER2_ID_AD_Reference_ID=137;
*/ */
public void setUser2_ID (int User2_ID) public void setUser2_ID (int User2_ID)
{ {
if (User2_ID <= 0) set_Value (COLUMNNAME_User2_ID, null); if (User2_ID <= 0)
set_Value (COLUMNNAME_User2_ID, null);
else else
set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID)); set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID));
} }

View File

@ -17,12 +17,14 @@
/** Generated Model - DO NOT CHANGE */ /** Generated Model - DO NOT CHANGE */
package org.compiere.model; package org.compiere.model;
import java.util.*;
import java.sql.*;
import java.math.*;
import java.lang.reflect.Constructor; 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 java.util.logging.Level;
import org.compiere.util.*; import org.compiere.util.Env;
import org.compiere.util.KeyNamePair;
/** Generated Model for M_Product /** Generated Model for M_Product
* @author Adempiere (generated) * @author Adempiere (generated)
@ -39,7 +41,9 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
public X_M_Product (Properties ctx, int M_Product_ID, String trxName) public X_M_Product (Properties ctx, int M_Product_ID, String trxName)
{ {
super (ctx, M_Product_ID, trxName); super (ctx, M_Product_ID, trxName);
/** if (M_Product_ID == 0) { setC_TaxCategory_ID (0); /** if (M_Product_ID == 0)
{
setC_TaxCategory_ID (0);
setC_UOM_ID (0); setC_UOM_ID (0);
setIsBOM (false); setIsBOM (false);
// N // N
@ -98,7 +102,7 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
return sb.toString(); return sb.toString();
} }
public I_C_RevenueRecognition getI_C_RevenueRecognition() throws Exception public I_C_RevenueRecognition getC_RevenueRecognition() throws Exception
{ {
Class<?> clazz = MTable.getClass(I_C_RevenueRecognition.Table_Name); Class<?> clazz = MTable.getClass(I_C_RevenueRecognition.Table_Name);
I_C_RevenueRecognition result = null; I_C_RevenueRecognition result = null;
@ -120,7 +124,8 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
*/ */
public void setC_RevenueRecognition_ID (int C_RevenueRecognition_ID) public void setC_RevenueRecognition_ID (int C_RevenueRecognition_ID)
{ {
if (C_RevenueRecognition_ID <= 0) set_Value (COLUMNNAME_C_RevenueRecognition_ID, null); if (C_RevenueRecognition_ID <= 0)
set_Value (COLUMNNAME_C_RevenueRecognition_ID, null);
else else
set_Value (COLUMNNAME_C_RevenueRecognition_ID, Integer.valueOf(C_RevenueRecognition_ID)); set_Value (COLUMNNAME_C_RevenueRecognition_ID, Integer.valueOf(C_RevenueRecognition_ID));
} }
@ -142,7 +147,8 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
*/ */
public void setC_SubscriptionType_ID (int C_SubscriptionType_ID) public void setC_SubscriptionType_ID (int C_SubscriptionType_ID)
{ {
if (C_SubscriptionType_ID <= 0) set_Value (COLUMNNAME_C_SubscriptionType_ID, null); if (C_SubscriptionType_ID <= 0)
set_Value (COLUMNNAME_C_SubscriptionType_ID, null);
else else
set_Value (COLUMNNAME_C_SubscriptionType_ID, Integer.valueOf(C_SubscriptionType_ID)); set_Value (COLUMNNAME_C_SubscriptionType_ID, Integer.valueOf(C_SubscriptionType_ID));
} }
@ -158,7 +164,7 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
return ii.intValue(); return ii.intValue();
} }
public I_C_TaxCategory getI_C_TaxCategory() throws Exception public I_C_TaxCategory getC_TaxCategory() throws Exception
{ {
Class<?> clazz = MTable.getClass(I_C_TaxCategory.Table_Name); Class<?> clazz = MTable.getClass(I_C_TaxCategory.Table_Name);
I_C_TaxCategory result = null; I_C_TaxCategory result = null;
@ -196,7 +202,7 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
return ii.intValue(); return ii.intValue();
} }
public I_C_UOM getI_C_UOM() throws Exception public I_C_UOM getC_UOM() throws Exception
{ {
Class<?> clazz = MTable.getClass(I_C_UOM.Table_Name); Class<?> clazz = MTable.getClass(I_C_UOM.Table_Name);
I_C_UOM result = null; I_C_UOM result = null;
@ -240,6 +246,7 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
*/ */
public void setClassification (String Classification) public void setClassification (String Classification)
{ {
if (Classification != null && Classification.length() > 1) if (Classification != null && Classification.length() > 1)
{ {
log.warning("Length > 1 - truncated"); log.warning("Length > 1 - truncated");
@ -262,6 +269,7 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
*/ */
public void setDescription (String Description) public void setDescription (String Description)
{ {
if (Description != null && Description.length() > 255) if (Description != null && Description.length() > 255)
{ {
log.warning("Length > 255 - truncated"); log.warning("Length > 255 - truncated");
@ -284,6 +292,7 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
*/ */
public void setDescriptionURL (String DescriptionURL) public void setDescriptionURL (String DescriptionURL)
{ {
if (DescriptionURL != null && DescriptionURL.length() > 120) if (DescriptionURL != null && DescriptionURL.length() > 120)
{ {
log.warning("Length > 120 - truncated"); log.warning("Length > 120 - truncated");
@ -347,6 +356,7 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
*/ */
public void setDocumentNote (String DocumentNote) public void setDocumentNote (String DocumentNote)
{ {
if (DocumentNote != null && DocumentNote.length() > 2000) if (DocumentNote != null && DocumentNote.length() > 2000)
{ {
log.warning("Length > 2000 - truncated"); log.warning("Length > 2000 - truncated");
@ -363,26 +373,44 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
return (String)get_Value(COLUMNNAME_DocumentNote); return (String)get_Value(COLUMNNAME_DocumentNote);
} }
/** Set Download URL. /** Set Group1.
@param DownloadURL @param Group1 Group1 */
URL of the Download files public void setGroup1 (String Group1)
*/
public void setDownloadURL (String DownloadURL)
{ {
if (DownloadURL != null && DownloadURL.length() > 120)
if (Group1 != null && Group1.length() > 255)
{ {
log.warning("Length > 120 - truncated"); log.warning("Length > 255 - truncated");
DownloadURL = DownloadURL.substring(0, 119); Group1 = Group1.substring(0, 254);
} }
set_Value (COLUMNNAME_DownloadURL, DownloadURL); set_Value (COLUMNNAME_Group1, Group1);
} }
/** Get Download URL. /** Get Group1.
@return URL of the Download files @return Group1 */
*/ public String getGroup1 ()
public String getDownloadURL ()
{ {
return (String)get_Value(COLUMNNAME_DownloadURL); 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. /** Set Guarantee Days.
@ -431,6 +459,7 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
*/ */
public void setHelp (String Help) public void setHelp (String Help)
{ {
if (Help != null && Help.length() > 2000) if (Help != null && Help.length() > 2000)
{ {
log.warning("Length > 2000 - truncated"); log.warning("Length > 2000 - truncated");
@ -453,6 +482,7 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
*/ */
public void setImageURL (String ImageURL) public void setImageURL (String ImageURL)
{ {
if (ImageURL != null && ImageURL.length() > 120) if (ImageURL != null && ImageURL.length() > 120)
{ {
log.warning("Length > 120 - truncated"); log.warning("Length > 120 - truncated");
@ -779,7 +809,7 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
return ii.intValue(); return ii.intValue();
} }
public I_M_AttributeSet getI_M_AttributeSet() throws Exception public I_M_AttributeSet getM_AttributeSet() throws Exception
{ {
Class<?> clazz = MTable.getClass(I_M_AttributeSet.Table_Name); Class<?> clazz = MTable.getClass(I_M_AttributeSet.Table_Name);
I_M_AttributeSet result = null; I_M_AttributeSet result = null;
@ -801,7 +831,8 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
*/ */
public void setM_AttributeSet_ID (int M_AttributeSet_ID) public void setM_AttributeSet_ID (int M_AttributeSet_ID)
{ {
if (M_AttributeSet_ID <= 0) set_Value (COLUMNNAME_M_AttributeSet_ID, null); if (M_AttributeSet_ID <= 0)
set_Value (COLUMNNAME_M_AttributeSet_ID, null);
else else
set_Value (COLUMNNAME_M_AttributeSet_ID, Integer.valueOf(M_AttributeSet_ID)); set_Value (COLUMNNAME_M_AttributeSet_ID, Integer.valueOf(M_AttributeSet_ID));
} }
@ -817,7 +848,7 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
return ii.intValue(); return ii.intValue();
} }
public I_M_FreightCategory getI_M_FreightCategory() throws Exception public I_M_FreightCategory getM_FreightCategory() throws Exception
{ {
Class<?> clazz = MTable.getClass(I_M_FreightCategory.Table_Name); Class<?> clazz = MTable.getClass(I_M_FreightCategory.Table_Name);
I_M_FreightCategory result = null; I_M_FreightCategory result = null;
@ -839,7 +870,8 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
*/ */
public void setM_FreightCategory_ID (int M_FreightCategory_ID) public void setM_FreightCategory_ID (int M_FreightCategory_ID)
{ {
if (M_FreightCategory_ID <= 0) set_Value (COLUMNNAME_M_FreightCategory_ID, null); if (M_FreightCategory_ID <= 0)
set_Value (COLUMNNAME_M_FreightCategory_ID, null);
else else
set_Value (COLUMNNAME_M_FreightCategory_ID, Integer.valueOf(M_FreightCategory_ID)); set_Value (COLUMNNAME_M_FreightCategory_ID, Integer.valueOf(M_FreightCategory_ID));
} }
@ -861,7 +893,8 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
*/ */
public void setM_Locator_ID (int M_Locator_ID) public void setM_Locator_ID (int M_Locator_ID)
{ {
if (M_Locator_ID <= 0) set_Value (COLUMNNAME_M_Locator_ID, null); if (M_Locator_ID <= 0)
set_Value (COLUMNNAME_M_Locator_ID, null);
else else
set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID));
} }
@ -879,7 +912,7 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
/** M_Product_Category_ID AD_Reference_ID=163 */ /** M_Product_Category_ID AD_Reference_ID=163 */
public static final int 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 public I_M_Product_Category getM_Product_Category() throws Exception
{ {
Class<?> clazz = MTable.getClass(I_M_Product_Category.Table_Name); Class<?> clazz = MTable.getClass(I_M_Product_Category.Table_Name);
I_M_Product_Category result = null; I_M_Product_Category result = null;
@ -947,6 +980,7 @@ public static final int M_PRODUCT_CATEGORY_ID_AD_Reference_ID=163;
{ {
if (Name == null) if (Name == null)
throw new IllegalArgumentException ("Name is mandatory."); throw new IllegalArgumentException ("Name is mandatory.");
if (Name.length() > 60) if (Name.length() > 60)
{ {
log.warning("Length > 60 - truncated"); log.warning("Length > 60 - truncated");
@ -993,19 +1027,26 @@ public static final int M_PRODUCT_CATEGORY_ID_AD_Reference_ID=163;
} }
/** ProductType AD_Reference_ID=270 */ /** ProductType AD_Reference_ID=270 */
public static final int PRODUCTTYPE_AD_Reference_ID=270;/** Expense type = E */ public static final int PRODUCTTYPE_AD_Reference_ID=270;
public static final String PRODUCTTYPE_ExpenseType = "E";/** Item = I */ /** Item = I */
public static final String PRODUCTTYPE_Item = "I";/** Online = O */ public static final String PRODUCTTYPE_Item = "I";
public static final String PRODUCTTYPE_Online = "O";/** Resource = R */ /** Service = S */
public static final String PRODUCTTYPE_Resource = "R";/** Service = S */
public static final String PRODUCTTYPE_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. /** Set Product Type.
@param ProductType @param ProductType
Type of product Type of product
*/ */
public void setProductType (String ProductType) 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) 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"); log.warning("Length > 1 - truncated");
ProductType = ProductType.substring(0, 0); ProductType = ProductType.substring(0, 0);
@ -1021,7 +1062,7 @@ if (ProductType == null) throw new IllegalArgumentException ("ProductType is man
return (String)get_Value(COLUMNNAME_ProductType); return (String)get_Value(COLUMNNAME_ProductType);
} }
public I_R_MailText getI_R_MailText() throws Exception public I_R_MailText getR_MailText() throws Exception
{ {
Class<?> clazz = MTable.getClass(I_R_MailText.Table_Name); Class<?> clazz = MTable.getClass(I_R_MailText.Table_Name);
I_R_MailText result = null; I_R_MailText result = null;
@ -1043,7 +1084,8 @@ if (ProductType == null) throw new IllegalArgumentException ("ProductType is man
*/ */
public void setR_MailText_ID (int R_MailText_ID) public void setR_MailText_ID (int R_MailText_ID)
{ {
if (R_MailText_ID <= 0) set_Value (COLUMNNAME_R_MailText_ID, null); if (R_MailText_ID <= 0)
set_Value (COLUMNNAME_R_MailText_ID, null);
else else
set_Value (COLUMNNAME_R_MailText_ID, Integer.valueOf(R_MailText_ID)); set_Value (COLUMNNAME_R_MailText_ID, Integer.valueOf(R_MailText_ID));
} }
@ -1065,6 +1107,7 @@ if (ProductType == null) throw new IllegalArgumentException ("ProductType is man
*/ */
public void setSKU (String SKU) public void setSKU (String SKU)
{ {
if (SKU != null && SKU.length() > 30) if (SKU != null && SKU.length() > 30)
{ {
log.warning("Length > 30 - truncated"); log.warning("Length > 30 - truncated");
@ -1081,7 +1124,7 @@ if (ProductType == null) throw new IllegalArgumentException ("ProductType is man
return (String)get_Value(COLUMNNAME_SKU); return (String)get_Value(COLUMNNAME_SKU);
} }
public I_S_ExpenseType getI_S_ExpenseType() throws Exception public I_S_ExpenseType getS_ExpenseType() throws Exception
{ {
Class<?> clazz = MTable.getClass(I_S_ExpenseType.Table_Name); Class<?> clazz = MTable.getClass(I_S_ExpenseType.Table_Name);
I_S_ExpenseType result = null; I_S_ExpenseType result = null;
@ -1103,7 +1146,8 @@ if (ProductType == null) throw new IllegalArgumentException ("ProductType is man
*/ */
public void setS_ExpenseType_ID (int S_ExpenseType_ID) public void setS_ExpenseType_ID (int S_ExpenseType_ID)
{ {
if (S_ExpenseType_ID <= 0) set_ValueNoCheck (COLUMNNAME_S_ExpenseType_ID, null); if (S_ExpenseType_ID <= 0)
set_ValueNoCheck (COLUMNNAME_S_ExpenseType_ID, null);
else else
set_ValueNoCheck (COLUMNNAME_S_ExpenseType_ID, Integer.valueOf(S_ExpenseType_ID)); set_ValueNoCheck (COLUMNNAME_S_ExpenseType_ID, Integer.valueOf(S_ExpenseType_ID));
} }
@ -1119,7 +1163,7 @@ if (ProductType == null) throw new IllegalArgumentException ("ProductType is man
return ii.intValue(); return ii.intValue();
} }
public I_S_Resource getI_S_Resource() throws Exception public I_S_Resource getS_Resource() throws Exception
{ {
Class<?> clazz = MTable.getClass(I_S_Resource.Table_Name); Class<?> clazz = MTable.getClass(I_S_Resource.Table_Name);
I_S_Resource result = null; I_S_Resource result = null;
@ -1141,7 +1185,8 @@ if (ProductType == null) throw new IllegalArgumentException ("ProductType is man
*/ */
public void setS_Resource_ID (int S_Resource_ID) public void setS_Resource_ID (int S_Resource_ID)
{ {
if (S_Resource_ID <= 0) set_ValueNoCheck (COLUMNNAME_S_Resource_ID, null); if (S_Resource_ID <= 0)
set_ValueNoCheck (COLUMNNAME_S_Resource_ID, null);
else else
set_ValueNoCheck (COLUMNNAME_S_Resource_ID, Integer.valueOf(S_Resource_ID)); set_ValueNoCheck (COLUMNNAME_S_Resource_ID, Integer.valueOf(S_Resource_ID));
} }
@ -1165,7 +1210,8 @@ public static final int SALESREP_ID_AD_Reference_ID=190;
*/ */
public void setSalesRep_ID (int SalesRep_ID) public void setSalesRep_ID (int SalesRep_ID)
{ {
if (SalesRep_ID <= 0) set_Value (COLUMNNAME_SalesRep_ID, null); if (SalesRep_ID <= 0)
set_Value (COLUMNNAME_SalesRep_ID, null);
else else
set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID));
} }
@ -1247,6 +1293,7 @@ public static final int SALESREP_ID_AD_Reference_ID=190;
*/ */
public void setUPC (String UPC) public void setUPC (String UPC)
{ {
if (UPC != null && UPC.length() > 30) if (UPC != null && UPC.length() > 30)
{ {
log.warning("Length > 30 - truncated"); log.warning("Length > 30 - truncated");
@ -1291,6 +1338,7 @@ public static final int SALESREP_ID_AD_Reference_ID=190;
{ {
if (Value == null) if (Value == null)
throw new IllegalArgumentException ("Value is mandatory."); throw new IllegalArgumentException ("Value is mandatory.");
if (Value.length() > 40) if (Value.length() > 40)
{ {
log.warning("Length > 40 - truncated"); log.warning("Length > 40 - truncated");
@ -1313,6 +1361,7 @@ public static final int SALESREP_ID_AD_Reference_ID=190;
*/ */
public void setVersionNo (String VersionNo) public void setVersionNo (String VersionNo)
{ {
if (VersionNo != null && VersionNo.length() > 20) if (VersionNo != null && VersionNo.length() > 20)
{ {
log.warning("Length > 20 - truncated"); log.warning("Length > 20 - truncated");