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,16 +32,14 @@
**********************************************************************/
package org.compiere.model;
import java.util.*;
import java.sql.Timestamp;
import java.math.*;
import org.compiere.util.*;
import java.math.BigDecimal;
import org.compiere.util.KeyNamePair;
/** Generated Interface for AD_PrintFormat
* @author Trifon Trifonov (generated)
* @version Release 3.3.0 - 2007-08-24 11:39:25.484
*/
public interface I_AD_PrintFormat
/** Generated Interface for AD_PrintFormat
* @author Trifon Trifonov (generated)
* @version Release 3.3.0
*/
public interface I_AD_PrintFormat
{
/** TableName=AD_PrintFormat */
@ -54,7 +52,7 @@ import org.compiere.util.*;
/** AccessLevel = 7 - System - Client - Org
*/
BigDecimal accessLevel = new BigDecimal(7);
BigDecimal accessLevel = BigDecimal.valueOf(7);
/** Load Meta Data */
@ -71,7 +69,7 @@ import org.compiere.util.*;
*/
public int getAD_PrintColor_ID();
public I_AD_PrintColor getI_AD_PrintColor() throws Exception;
public I_AD_PrintColor getAD_PrintColor() throws Exception;
/** Column name AD_PrintFont_ID */
public static final String COLUMNNAME_AD_PrintFont_ID = "AD_PrintFont_ID";
@ -86,7 +84,7 @@ import org.compiere.util.*;
*/
public int getAD_PrintFont_ID();
public I_AD_PrintFont getI_AD_PrintFont() throws Exception;
public I_AD_PrintFont getAD_PrintFont() throws Exception;
/** Column name AD_PrintFormat_ID */
public static final String COLUMNNAME_AD_PrintFormat_ID = "AD_PrintFormat_ID";
@ -114,7 +112,7 @@ import org.compiere.util.*;
*/
public int getAD_PrintPaper_ID();
public I_AD_PrintPaper getI_AD_PrintPaper() throws Exception;
public I_AD_PrintPaper getAD_PrintPaper() throws Exception;
/** Column name AD_PrintTableFormat_ID */
public static final String COLUMNNAME_AD_PrintTableFormat_ID = "AD_PrintTableFormat_ID";
@ -129,7 +127,7 @@ import org.compiere.util.*;
*/
public int getAD_PrintTableFormat_ID();
public I_AD_PrintTableFormat getI_AD_PrintTableFormat() throws Exception;
public I_AD_PrintTableFormat getAD_PrintTableFormat() throws Exception;
/** Column name AD_ReportView_ID */
public static final String COLUMNNAME_AD_ReportView_ID = "AD_ReportView_ID";
@ -144,7 +142,7 @@ import org.compiere.util.*;
*/
public int getAD_ReportView_ID();
public I_AD_ReportView getI_AD_ReportView() throws Exception;
public I_AD_ReportView getAD_ReportView() throws Exception;
/** Column name AD_Table_ID */
public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID";
@ -159,7 +157,25 @@ import org.compiere.util.*;
*/
public int getAD_Table_ID();
public I_AD_Table getI_AD_Table() throws Exception;
public I_AD_Table getAD_Table() throws Exception;
/** Column name Args */
public static final String COLUMNNAME_Args = "Args";
/** Set Args */
public void setArgs (String Args);
/** Get Args */
public String getArgs();
/** Column name ClassName */
public static final String COLUMNNAME_ClassName = "ClassName";
/** Set ClassName */
public void setClassName (String ClassName);
/** Get ClassName */
public String getClassName();
/** Column name CreateCopy */
public static final String COLUMNNAME_CreateCopy = "CreateCopy";

View File

@ -32,16 +32,14 @@
**********************************************************************/
package org.compiere.model;
import java.util.*;
import java.sql.Timestamp;
import java.math.*;
import org.compiere.util.*;
import java.math.BigDecimal;
import org.compiere.util.KeyNamePair;
/** Generated Interface for AD_Role
* @author Trifon Trifonov (generated)
* @version Release 3.3.0 - 2007-08-24 11:39:27.421
*/
public interface I_AD_Role
/** Generated Interface for AD_Role
* @author Trifon Trifonov (generated)
* @version Release 3.3.0
*/
public interface I_AD_Role
{
/** TableName=AD_Role */
@ -54,7 +52,7 @@ import org.compiere.util.*;
/** AccessLevel = 6 - System - Client
*/
BigDecimal accessLevel = new BigDecimal(6);
BigDecimal accessLevel = BigDecimal.valueOf(6);
/** Load Meta Data */
@ -222,7 +220,7 @@ import org.compiere.util.*;
*/
public int getC_Currency_ID();
public I_C_Currency getI_C_Currency() throws Exception;
public I_C_Currency getC_Currency() throws Exception;
/** Column name ConfirmQueryRecords */
public static final String COLUMNNAME_ConfirmQueryRecords = "ConfirmQueryRecords";
@ -458,6 +456,15 @@ import org.compiere.util.*;
*/
public int getSupervisor_ID();
/** Column name UserDiscount */
public static final String COLUMNNAME_UserDiscount = "UserDiscount";
/** Set UserDiscount */
public void setUserDiscount (BigDecimal UserDiscount);
/** Get UserDiscount */
public BigDecimal getUserDiscount();
/** Column name UserLevel */
public static final String COLUMNNAME_UserLevel = "UserLevel";

View File

@ -32,16 +32,15 @@
**********************************************************************/
package org.compiere.model;
import java.util.*;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.math.*;
import org.compiere.util.*;
import org.compiere.util.KeyNamePair;
/** Generated Interface for AD_User
* @author Trifon Trifonov (generated)
* @version Release 3.3.0 - 2007-08-24 11:39:29.625
*/
public interface I_AD_User
/** Generated Interface for AD_User
* @author Trifon Trifonov (generated)
* @version Release 3.3.0
*/
public interface I_AD_User
{
/** TableName=AD_User */
@ -54,7 +53,7 @@ import org.compiere.util.*;
/** AccessLevel = 7 - System - Client - Org
*/
BigDecimal accessLevel = new BigDecimal(7);
BigDecimal accessLevel = BigDecimal.valueOf(7);
/** Load Meta Data */
@ -123,7 +122,7 @@ import org.compiere.util.*;
*/
public int getC_BPartner_Location_ID();
public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception;
public I_C_BPartner_Location getC_BPartner_Location() throws Exception;
/** Column name C_Greeting_ID */
public static final String COLUMNNAME_C_Greeting_ID = "C_Greeting_ID";
@ -138,7 +137,7 @@ import org.compiere.util.*;
*/
public int getC_Greeting_ID();
public I_C_Greeting getI_C_Greeting() throws Exception;
public I_C_Greeting getC_Greeting() throws Exception;
/** Column name C_Job_ID */
public static final String COLUMNNAME_C_Job_ID = "C_Job_ID";
@ -153,7 +152,7 @@ import org.compiere.util.*;
*/
public int getC_Job_ID();
public I_C_Job getI_C_Job() throws Exception;
public I_C_Job getC_Job() throws Exception;
/** Column name Comments */
public static final String COLUMNNAME_Comments = "Comments";
@ -424,6 +423,15 @@ import org.compiere.util.*;
*/
public String getTitle();
/** Column name UserPIN */
public static final String COLUMNNAME_UserPIN = "UserPIN";
/** Set UserPIN */
public void setUserPIN (String UserPIN);
/** Get UserPIN */
public String getUserPIN();
/** Column name Value */
public static final String COLUMNNAME_Value = "Value";

View File

@ -32,16 +32,15 @@
**********************************************************************/
package org.compiere.model;
import java.util.*;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.math.*;
import org.compiere.util.*;
import org.compiere.util.KeyNamePair;
/** Generated Interface for C_Order
* @author Trifon Trifonov (generated)
* @version Release 3.3.0 - 2007-08-24 11:39:41.468
*/
public interface I_C_Order
/** Generated Interface for C_Order
* @author Trifon Trifonov (generated)
* @version Release 3.3.0
*/
public interface I_C_Order
{
/** TableName=C_Order */
@ -54,7 +53,7 @@ import org.compiere.util.*;
/** AccessLevel = 1 - Org
*/
BigDecimal accessLevel = new BigDecimal(1);
BigDecimal accessLevel = BigDecimal.valueOf(1);
/** Load Meta Data */
@ -84,7 +83,25 @@ import org.compiere.util.*;
*/
public int getAD_User_ID();
public I_AD_User getI_AD_User() throws Exception;
public I_AD_User getAD_User() throws Exception;
/** Column name AmountRefunded */
public static final String COLUMNNAME_AmountRefunded = "AmountRefunded";
/** Set AmountRefunded */
public void setAmountRefunded (BigDecimal AmountRefunded);
/** Get AmountRefunded */
public BigDecimal getAmountRefunded();
/** Column name AmountTendered */
public static final String COLUMNNAME_AmountTendered = "AmountTendered";
/** Set AmountTendered */
public void setAmountTendered (BigDecimal AmountTendered);
/** Get AmountTendered */
public BigDecimal getAmountTendered();
/** Column name Bill_BPartner_ID */
public static final String COLUMNNAME_Bill_BPartner_ID = "Bill_BPartner_ID";
@ -138,7 +155,7 @@ import org.compiere.util.*;
*/
public int getC_Activity_ID();
public I_C_Activity getI_C_Activity() throws Exception;
public I_C_Activity getC_Activity() throws Exception;
/** Column name C_BPartner_ID */
public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID";
@ -166,7 +183,7 @@ import org.compiere.util.*;
*/
public int getC_BPartner_Location_ID();
public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception;
public I_C_BPartner_Location getC_BPartner_Location() throws Exception;
/** Column name C_Campaign_ID */
public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID";
@ -181,7 +198,7 @@ import org.compiere.util.*;
*/
public int getC_Campaign_ID();
public I_C_Campaign getI_C_Campaign() throws Exception;
public I_C_Campaign getC_Campaign() throws Exception;
/** Column name C_CashLine_ID */
public static final String COLUMNNAME_C_CashLine_ID = "C_CashLine_ID";
@ -222,7 +239,7 @@ import org.compiere.util.*;
*/
public int getC_ConversionType_ID();
public I_C_ConversionType getI_C_ConversionType() throws Exception;
public I_C_ConversionType getC_ConversionType() throws Exception;
/** Column name C_Currency_ID */
public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID";
@ -237,7 +254,7 @@ import org.compiere.util.*;
*/
public int getC_Currency_ID();
public I_C_Currency getI_C_Currency() throws Exception;
public I_C_Currency getC_Currency() throws Exception;
/** Column name C_DocTypeTarget_ID */
public static final String COLUMNNAME_C_DocTypeTarget_ID = "C_DocTypeTarget_ID";
@ -265,7 +282,7 @@ import org.compiere.util.*;
*/
public int getC_DocType_ID();
public I_C_DocType getI_C_DocType() throws Exception;
public I_C_DocType getC_DocType() throws Exception;
/** Column name C_Order_ID */
public static final String COLUMNNAME_C_Order_ID = "C_Order_ID";
@ -280,6 +297,17 @@ import org.compiere.util.*;
*/
public int getC_Order_ID();
/** Column name C_POS_ID */
public static final String COLUMNNAME_C_POS_ID = "C_POS_ID";
/** Set C_POS_ID */
public void setC_POS_ID (int C_POS_ID);
/** Get C_POS_ID */
public int getC_POS_ID();
public I_C_POS getC_POS() throws Exception;
/** Column name C_PaymentTerm_ID */
public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID";
@ -293,7 +321,7 @@ import org.compiere.util.*;
*/
public int getC_PaymentTerm_ID();
public I_C_PaymentTerm getI_C_PaymentTerm() throws Exception;
public I_C_PaymentTerm getC_PaymentTerm() throws Exception;
/** Column name C_Payment_ID */
public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID";
@ -321,7 +349,7 @@ import org.compiere.util.*;
*/
public int getC_Project_ID();
public I_C_Project getI_C_Project() throws Exception;
public I_C_Project getC_Project() throws Exception;
/** Column name ChargeAmt */
public static final String COLUMNNAME_ChargeAmt = "ChargeAmt";
@ -692,7 +720,7 @@ import org.compiere.util.*;
*/
public int getM_PriceList_ID();
public I_M_PriceList getI_M_PriceList() throws Exception;
public I_M_PriceList getM_PriceList() throws Exception;
/** Column name M_Shipper_ID */
public static final String COLUMNNAME_M_Shipper_ID = "M_Shipper_ID";
@ -707,7 +735,7 @@ import org.compiere.util.*;
*/
public int getM_Shipper_ID();
public I_M_Shipper getI_M_Shipper() throws Exception;
public I_M_Shipper getM_Shipper() throws Exception;
/** Column name M_Warehouse_ID */
public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID";
@ -722,7 +750,16 @@ import org.compiere.util.*;
*/
public int getM_Warehouse_ID();
public I_M_Warehouse getI_M_Warehouse() throws Exception;
public I_M_Warehouse getM_Warehouse() throws Exception;
/** Column name OrderType */
public static final String COLUMNNAME_OrderType = "OrderType";
/** Set OrderType */
public void setOrderType (String OrderType);
/** Get OrderType */
public String getOrderType();
/** Column name POReference */
public static final String COLUMNNAME_POReference = "POReference";

View File

@ -32,16 +32,15 @@
**********************************************************************/
package org.compiere.model;
import java.util.*;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.math.*;
import org.compiere.util.*;
import org.compiere.util.KeyNamePair;
/** Generated Interface for M_Product
* @author Trifon Trifonov (generated)
* @version Release 3.3.0 - 2007-08-24 11:39:51.312
*/
public interface I_M_Product
/** Generated Interface for M_Product
* @author Trifon Trifonov (generated)
* @version Release 3.3.0
*/
public interface I_M_Product
{
/** TableName=M_Product */
@ -54,7 +53,7 @@ import org.compiere.util.*;
/** AccessLevel = 3 - Client - Org
*/
BigDecimal accessLevel = new BigDecimal(3);
BigDecimal accessLevel = BigDecimal.valueOf(3);
/** Load Meta Data */
@ -71,7 +70,7 @@ import org.compiere.util.*;
*/
public int getC_RevenueRecognition_ID();
public I_C_RevenueRecognition getI_C_RevenueRecognition() throws Exception;
public I_C_RevenueRecognition getC_RevenueRecognition() throws Exception;
/** Column name C_SubscriptionType_ID */
public static final String COLUMNNAME_C_SubscriptionType_ID = "C_SubscriptionType_ID";
@ -99,7 +98,7 @@ import org.compiere.util.*;
*/
public int getC_TaxCategory_ID();
public I_C_TaxCategory getI_C_TaxCategory() throws Exception;
public I_C_TaxCategory getC_TaxCategory() throws Exception;
/** Column name C_UOM_ID */
public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID";
@ -114,7 +113,7 @@ import org.compiere.util.*;
*/
public int getC_UOM_ID();
public I_C_UOM getI_C_UOM() throws Exception;
public I_C_UOM getC_UOM() throws Exception;
/** Column name Classification */
public static final String COLUMNNAME_Classification = "Classification";
@ -194,18 +193,23 @@ import org.compiere.util.*;
*/
public String getDocumentNote();
/** Column name DownloadURL */
public static final String COLUMNNAME_DownloadURL = "DownloadURL";
/** Column name Group1 */
public static final String COLUMNNAME_Group1 = "Group1";
/** Set Download URL.
* URL of the Download files
*/
public void setDownloadURL (String DownloadURL);
/** Set Group1 */
public void setGroup1 (String Group1);
/** Get Download URL.
* URL of the Download files
*/
public String getDownloadURL();
/** Get Group1 */
public String getGroup1();
/** Column name Group2 */
public static final String COLUMNNAME_Group2 = "Group2";
/** Set Group2 */
public void setGroup2 (String Group2);
/** Get Group2 */
public String getGroup2();
/** Column name GuaranteeDays */
public static final String COLUMNNAME_GuaranteeDays = "GuaranteeDays";
@ -441,7 +445,7 @@ import org.compiere.util.*;
*/
public int getM_AttributeSet_ID();
public I_M_AttributeSet getI_M_AttributeSet() throws Exception;
public I_M_AttributeSet getM_AttributeSet() throws Exception;
/** Column name M_FreightCategory_ID */
public static final String COLUMNNAME_M_FreightCategory_ID = "M_FreightCategory_ID";
@ -456,7 +460,7 @@ import org.compiere.util.*;
*/
public int getM_FreightCategory_ID();
public I_M_FreightCategory getI_M_FreightCategory() throws Exception;
public I_M_FreightCategory getM_FreightCategory() throws Exception;
/** Column name M_Locator_ID */
public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID";
@ -484,7 +488,7 @@ import org.compiere.util.*;
*/
public int getM_Product_Category_ID();
public I_M_Product_Category getI_M_Product_Category() throws Exception;
public I_M_Product_Category getM_Product_Category() throws Exception;
/** Column name M_Product_ID */
public static final String COLUMNNAME_M_Product_ID = "M_Product_ID";
@ -547,7 +551,7 @@ import org.compiere.util.*;
*/
public int getR_MailText_ID();
public I_R_MailText getI_R_MailText() throws Exception;
public I_R_MailText getR_MailText() throws Exception;
/** Column name SKU */
public static final String COLUMNNAME_SKU = "SKU";
@ -575,7 +579,7 @@ import org.compiere.util.*;
*/
public int getS_ExpenseType_ID();
public I_S_ExpenseType getI_S_ExpenseType() throws Exception;
public I_S_ExpenseType getS_ExpenseType() throws Exception;
/** Column name S_Resource_ID */
public static final String COLUMNNAME_S_Resource_ID = "S_Resource_ID";
@ -590,7 +594,7 @@ import org.compiere.util.*;
*/
public int getS_Resource_ID();
public I_S_Resource getI_S_Resource() throws Exception;
public I_S_Resource getS_Resource() throws Exception;
/** Column name SalesRep_ID */
public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID";

View File

@ -17,12 +17,11 @@
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;
import java.util.*;
import java.sql.*;
import java.math.*;
import java.lang.reflect.Constructor;
import java.sql.ResultSet;
import java.util.Properties;
import java.util.logging.Level;
import org.compiere.util.*;
import org.compiere.util.KeyNamePair;
/** Generated Model for AD_PrintFormat
* @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)
{
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_PrintFormat_ID (0);
// 0
@ -54,7 +55,7 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste
setIsTableBased (true);
// Y
setName (null);
} */
} */
}
/** Load Constructor */
@ -85,7 +86,7 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste
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);
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();
}
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);
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();
}
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);
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();
}
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);
I_AD_PrintTableFormat result = null;
@ -243,9 +244,10 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste
*/
public void setAD_PrintTableFormat_ID (int AD_PrintTableFormat_ID)
{
if (AD_PrintTableFormat_ID <= 0) set_Value (COLUMNNAME_AD_PrintTableFormat_ID, null);
else
set_Value (COLUMNNAME_AD_PrintTableFormat_ID, Integer.valueOf(AD_PrintTableFormat_ID));
if (AD_PrintTableFormat_ID <= 0)
set_Value (COLUMNNAME_AD_PrintTableFormat_ID, null);
else
set_Value (COLUMNNAME_AD_PrintTableFormat_ID, Integer.valueOf(AD_PrintTableFormat_ID));
}
/** Get Print Table Format.
@ -259,7 +261,7 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste
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);
I_AD_ReportView result = null;
@ -281,9 +283,10 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste
*/
public void setAD_ReportView_ID (int AD_ReportView_ID)
{
if (AD_ReportView_ID <= 0) set_ValueNoCheck (COLUMNNAME_AD_ReportView_ID, null);
else
set_ValueNoCheck (COLUMNNAME_AD_ReportView_ID, Integer.valueOf(AD_ReportView_ID));
if (AD_ReportView_ID <= 0)
set_ValueNoCheck (COLUMNNAME_AD_ReportView_ID, null);
else
set_ValueNoCheck (COLUMNNAME_AD_ReportView_ID, Integer.valueOf(AD_ReportView_ID));
}
/** Get Report View.
@ -297,7 +300,7 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste
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);
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();
}
/** Set Args.
@param Args Args */
public void setArgs (String Args)
{
if (Args != null && Args.length() > 510)
{
log.warning("Length > 510 - truncated");
Args = Args.substring(0, 509);
}
set_Value (COLUMNNAME_Args, Args);
}
/** Get Args.
@return Args */
public String getArgs ()
{
return (String)get_Value(COLUMNNAME_Args);
}
/** Set ClassName.
@param ClassName ClassName */
public void setClassName (String ClassName)
{
if (ClassName != null && ClassName.length() > 240)
{
log.warning("Length > 240 - truncated");
ClassName = ClassName.substring(0, 239);
}
set_Value (COLUMNNAME_ClassName, ClassName);
}
/** Get ClassName.
@return ClassName */
public String getClassName ()
{
return (String)get_Value(COLUMNNAME_ClassName);
}
/** Set Create Copy.
@param CreateCopy Create Copy */
public void setCreateCopy (String CreateCopy)
{
if (CreateCopy != null && CreateCopy.length() > 1)
{
log.warning("Length > 1 - truncated");
@ -348,7 +392,7 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste
}
/** Get Create Copy.
@return Create Copy */
@return Create Copy */
public String getCreateCopy ()
{
return (String)get_Value(COLUMNNAME_CreateCopy);
@ -360,6 +404,7 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste
*/
public void setDescription (String Description)
{
if (Description != null && Description.length() > 255)
{
log.warning("Length > 255 - truncated");
@ -512,17 +557,18 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste
return false;
}
/** JasperProcess_ID AD_Reference_ID=400 */
public static final int JASPERPROCESS_ID_AD_Reference_ID=400;
/** JasperProcess_ID AD_Reference_ID=400 */
public static final int JASPERPROCESS_ID_AD_Reference_ID=400;
/** Set Jasper Process.
@param JasperProcess_ID
The Jasper Process used by the printengine if any process defined
*/
public void setJasperProcess_ID (int JasperProcess_ID)
{
if (JasperProcess_ID <= 0) set_Value (COLUMNNAME_JasperProcess_ID, null);
else
set_Value (COLUMNNAME_JasperProcess_ID, Integer.valueOf(JasperProcess_ID));
if (JasperProcess_ID <= 0)
set_Value (COLUMNNAME_JasperProcess_ID, null);
else
set_Value (COLUMNNAME_JasperProcess_ID, Integer.valueOf(JasperProcess_ID));
}
/** Get Jasper Process.
@ -544,6 +590,7 @@ public static final int JASPERPROCESS_ID_AD_Reference_ID=400;
{
if (Name == null)
throw new IllegalArgumentException ("Name is mandatory.");
if (Name.length() > 60)
{
log.warning("Length > 60 - truncated");
@ -574,6 +621,7 @@ public static final int JASPERPROCESS_ID_AD_Reference_ID=400;
*/
public void setPrinterName (String PrinterName)
{
if (PrinterName != null && PrinterName.length() > 40)
{
log.warning("Length > 40 - truncated");

View File

@ -17,12 +17,13 @@
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;
import java.util.*;
import java.sql.*;
import java.math.*;
import java.lang.reflect.Constructor;
import java.math.BigDecimal;
import java.sql.ResultSet;
import java.util.Properties;
import java.util.logging.Level;
import org.compiere.util.*;
import org.compiere.util.Env;
import org.compiere.util.KeyNamePair;
/** Generated Model for AD_Role
* @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)
{
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);
// 0
setIsAccessAllOrgs (false);
@ -69,7 +72,7 @@ public class X_AD_Role extends PO implements I_AD_Role, I_Persistent
// O
setUserLevel (null);
// O
} */
} */
}
/** Load Constructor */
@ -122,17 +125,18 @@ public class X_AD_Role extends PO implements I_AD_Role, I_Persistent
return ii.intValue();
}
/** AD_Tree_Menu_ID AD_Reference_ID=184 */
public static final int AD_TREE_MENU_ID_AD_Reference_ID=184;
/** AD_Tree_Menu_ID AD_Reference_ID=184 */
public static final int AD_TREE_MENU_ID_AD_Reference_ID=184;
/** Set Menu Tree.
@param AD_Tree_Menu_ID
Tree of the menu
*/
public void setAD_Tree_Menu_ID (int AD_Tree_Menu_ID)
{
if (AD_Tree_Menu_ID <= 0) set_Value (COLUMNNAME_AD_Tree_Menu_ID, null);
else
set_Value (COLUMNNAME_AD_Tree_Menu_ID, Integer.valueOf(AD_Tree_Menu_ID));
if (AD_Tree_Menu_ID <= 0)
set_Value (COLUMNNAME_AD_Tree_Menu_ID, null);
else
set_Value (COLUMNNAME_AD_Tree_Menu_ID, Integer.valueOf(AD_Tree_Menu_ID));
}
/** Get Menu Tree.
@ -146,17 +150,18 @@ public static final int AD_TREE_MENU_ID_AD_Reference_ID=184;
return ii.intValue();
}
/** AD_Tree_Org_ID AD_Reference_ID=184 */
public static final int AD_TREE_ORG_ID_AD_Reference_ID=184;
/** AD_Tree_Org_ID AD_Reference_ID=184 */
public static final int AD_TREE_ORG_ID_AD_Reference_ID=184;
/** Set Organization Tree.
@param AD_Tree_Org_ID
Tree to determine organizational hierarchy
*/
public void setAD_Tree_Org_ID (int AD_Tree_Org_ID)
{
if (AD_Tree_Org_ID <= 0) set_Value (COLUMNNAME_AD_Tree_Org_ID, null);
else
set_Value (COLUMNNAME_AD_Tree_Org_ID, Integer.valueOf(AD_Tree_Org_ID));
if (AD_Tree_Org_ID <= 0)
set_Value (COLUMNNAME_AD_Tree_Org_ID, null);
else
set_Value (COLUMNNAME_AD_Tree_Org_ID, Integer.valueOf(AD_Tree_Org_ID));
}
/** Get Organization Tree.
@ -178,7 +183,7 @@ public static final int AD_TREE_ORG_ID_AD_Reference_ID=184;
}
/** Get Allow Info Account.
@return Allow Info Account */
@return Allow Info Account */
public boolean isAllow_Info_Account ()
{
Object oo = get_Value(COLUMNNAME_Allow_Info_Account);
@ -199,7 +204,7 @@ public static final int AD_TREE_ORG_ID_AD_Reference_ID=184;
}
/** Get Allow Info Asset.
@return Allow Info Asset */
@return Allow Info Asset */
public boolean isAllow_Info_Asset ()
{
Object oo = get_Value(COLUMNNAME_Allow_Info_Asset);
@ -220,7 +225,7 @@ public static final int AD_TREE_ORG_ID_AD_Reference_ID=184;
}
/** Get Allow Info BPartner.
@return Allow Info BPartner */
@return Allow Info BPartner */
public boolean isAllow_Info_BPartner ()
{
Object oo = get_Value(COLUMNNAME_Allow_Info_BPartner);
@ -241,7 +246,7 @@ public static final int AD_TREE_ORG_ID_AD_Reference_ID=184;
}
/** Get Allow Info CashJournal.
@return Allow Info CashJournal */
@return Allow Info CashJournal */
public boolean isAllow_Info_CashJournal ()
{
Object oo = get_Value(COLUMNNAME_Allow_Info_CashJournal);
@ -262,7 +267,7 @@ public static final int AD_TREE_ORG_ID_AD_Reference_ID=184;
}
/** Get Allow Info InOut.
@return Allow Info InOut */
@return Allow Info InOut */
public boolean isAllow_Info_InOut ()
{
Object oo = get_Value(COLUMNNAME_Allow_Info_InOut);
@ -283,7 +288,7 @@ public static final int AD_TREE_ORG_ID_AD_Reference_ID=184;
}
/** Get Allow Info Invoice.
@return Allow Info Invoice */
@return Allow Info Invoice */
public boolean isAllow_Info_Invoice ()
{
Object oo = get_Value(COLUMNNAME_Allow_Info_Invoice);
@ -304,7 +309,7 @@ public static final int AD_TREE_ORG_ID_AD_Reference_ID=184;
}
/** Get Allow Info Order.
@return Allow Info Order */
@return Allow Info Order */
public boolean isAllow_Info_Order ()
{
Object oo = get_Value(COLUMNNAME_Allow_Info_Order);
@ -325,7 +330,7 @@ public static final int AD_TREE_ORG_ID_AD_Reference_ID=184;
}
/** Get Allow Info Payment.
@return Allow Info Payment */
@return Allow Info Payment */
public boolean isAllow_Info_Payment ()
{
Object oo = get_Value(COLUMNNAME_Allow_Info_Payment);
@ -346,7 +351,7 @@ public static final int AD_TREE_ORG_ID_AD_Reference_ID=184;
}
/** Get Allow Info Product.
@return Allow Info Product */
@return Allow Info Product */
public boolean isAllow_Info_Product ()
{
Object oo = get_Value(COLUMNNAME_Allow_Info_Product);
@ -367,7 +372,7 @@ public static final int AD_TREE_ORG_ID_AD_Reference_ID=184;
}
/** Get Allow Info Resource.
@return Allow Info Resource */
@return Allow Info Resource */
public boolean isAllow_Info_Resource ()
{
Object oo = get_Value(COLUMNNAME_Allow_Info_Resource);
@ -388,7 +393,7 @@ public static final int AD_TREE_ORG_ID_AD_Reference_ID=184;
}
/** Get Allow Info Schedule.
@return Allow Info Schedule */
@return Allow Info Schedule */
public boolean isAllow_Info_Schedule ()
{
Object oo = get_Value(COLUMNNAME_Allow_Info_Schedule);
@ -421,7 +426,7 @@ public static final int AD_TREE_ORG_ID_AD_Reference_ID=184;
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);
I_C_Currency result = null;
@ -443,9 +448,10 @@ public static final int AD_TREE_ORG_ID_AD_Reference_ID=184;
*/
public void setC_Currency_ID (int C_Currency_ID)
{
if (C_Currency_ID <= 0) set_Value (COLUMNNAME_C_Currency_ID, null);
else
set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID));
if (C_Currency_ID <= 0)
set_Value (COLUMNNAME_C_Currency_ID, null);
else
set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID));
}
/** Get Currency.
@ -479,19 +485,25 @@ public static final int AD_TREE_ORG_ID_AD_Reference_ID=184;
return ii.intValue();
}
/** ConnectionProfile AD_Reference_ID=364 */
public static final int CONNECTIONPROFILE_AD_Reference_ID=364;/** LAN = L */
public static final String CONNECTIONPROFILE_LAN = "L";/** Terminal Server = T */
public static final String CONNECTIONPROFILE_TerminalServer = "T";/** VPN = V */
public static final String CONNECTIONPROFILE_VPN = "V";/** WAN = W */
public static final String CONNECTIONPROFILE_WAN = "W";
/** ConnectionProfile AD_Reference_ID=364 */
public static final int CONNECTIONPROFILE_AD_Reference_ID=364;
/** LAN = L */
public static final String CONNECTIONPROFILE_LAN = "L";
/** Terminal Server = T */
public static final String CONNECTIONPROFILE_TerminalServer = "T";
/** VPN = V */
public static final String CONNECTIONPROFILE_VPN = "V";
/** WAN = W */
public static final String CONNECTIONPROFILE_WAN = "W";
/** Set Connection Profile.
@param ConnectionProfile
How a Java Client connects to the server(s)
*/
public void setConnectionProfile (String ConnectionProfile)
{
if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProfile.equals("T") || ConnectionProfile.equals("V") || ConnectionProfile.equals("W")); else throw new IllegalArgumentException ("ConnectionProfile Invalid value - " + ConnectionProfile + " - Reference_ID=364 - L - T - V - W"); if (ConnectionProfile != null && ConnectionProfile.length() > 1)
if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProfile.equals("T") || ConnectionProfile.equals("V") || ConnectionProfile.equals("W")); else throw new IllegalArgumentException ("ConnectionProfile Invalid value - " + ConnectionProfile + " - Reference_ID=364 - L - T - V - W");
if (ConnectionProfile != null && ConnectionProfile.length() > 1)
{
log.warning("Length > 1 - truncated");
ConnectionProfile = ConnectionProfile.substring(0, 0);
@ -513,6 +525,7 @@ if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProf
*/
public void setDescription (String Description)
{
if (Description != null && Description.length() > 255)
{
log.warning("Length > 255 - truncated");
@ -797,6 +810,7 @@ if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProf
{
if (Name == null)
throw new IllegalArgumentException ("Name is mandatory.");
if (Name.length() > 60)
{
log.warning("Length > 60 - truncated");
@ -845,19 +859,25 @@ if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProf
return false;
}
/** PreferenceType AD_Reference_ID=330 */
public static final int PREFERENCETYPE_AD_Reference_ID=330;/** Client = C */
public static final String PREFERENCETYPE_Client = "C";/** None = N */
public static final String PREFERENCETYPE_None = "N";/** Organization = O */
public static final String PREFERENCETYPE_Organization = "O";/** User = U */
public static final String PREFERENCETYPE_User = "U";
/** PreferenceType AD_Reference_ID=330 */
public static final int PREFERENCETYPE_AD_Reference_ID=330;
/** Client = C */
public static final String PREFERENCETYPE_Client = "C";
/** Organization = O */
public static final String PREFERENCETYPE_Organization = "O";
/** User = U */
public static final String PREFERENCETYPE_User = "U";
/** None = N */
public static final String PREFERENCETYPE_None = "N";
/** Set Preference Level.
@param PreferenceType
Determines what preferences the user can set
*/
public void setPreferenceType (String PreferenceType)
{
if (PreferenceType == null) throw new IllegalArgumentException ("PreferenceType is mandatory");if (PreferenceType.equals("C") || PreferenceType.equals("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");
PreferenceType = PreferenceType.substring(0, 0);
@ -873,17 +893,18 @@ if (PreferenceType == null) throw new IllegalArgumentException ("PreferenceType
return (String)get_Value(COLUMNNAME_PreferenceType);
}
/** Supervisor_ID AD_Reference_ID=286 */
public static final int SUPERVISOR_ID_AD_Reference_ID=286;
/** Supervisor_ID AD_Reference_ID=286 */
public static final int SUPERVISOR_ID_AD_Reference_ID=286;
/** Set Supervisor.
@param Supervisor_ID
Supervisor for this user/organization - used for escalation and approval
*/
public void setSupervisor_ID (int Supervisor_ID)
{
if (Supervisor_ID <= 0) set_Value (COLUMNNAME_Supervisor_ID, null);
else
set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID));
if (Supervisor_ID <= 0)
set_Value (COLUMNNAME_Supervisor_ID, null);
else
set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID));
}
/** Get Supervisor.
@ -897,19 +918,42 @@ public static final int SUPERVISOR_ID_AD_Reference_ID=286;
return ii.intValue();
}
/** UserLevel AD_Reference_ID=226 */
public static final int USERLEVEL_AD_Reference_ID=226;/** Organization = O */
public static final String USERLEVEL_Organization = " O";/** Client = C */
public static final String USERLEVEL_Client = " C ";/** Client+Organization = CO */
public static final String USERLEVEL_ClientPlusOrganization = " CO";/** System = S */
public static final String USERLEVEL_System = "S ";
/** Set UserDiscount.
@param UserDiscount UserDiscount */
public void setUserDiscount (BigDecimal UserDiscount)
{
set_Value (COLUMNNAME_UserDiscount, UserDiscount);
}
/** Get UserDiscount.
@return UserDiscount */
public BigDecimal getUserDiscount ()
{
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_UserDiscount);
if (bd == null)
return Env.ZERO;
return bd;
}
/** UserLevel AD_Reference_ID=226 */
public static final int USERLEVEL_AD_Reference_ID=226;
/** System = S */
public static final String USERLEVEL_System = "S ";
/** Client = C */
public static final String USERLEVEL_Client = " C ";
/** Organization = O */
public static final String USERLEVEL_Organization = " O";
/** Client+Organization = CO */
public static final String USERLEVEL_ClientPlusOrganization = " CO";
/** Set User Level.
@param UserLevel
System Client Organization
*/
public void setUserLevel (String UserLevel)
{
if (UserLevel == null) throw new IllegalArgumentException ("UserLevel is mandatory");if (UserLevel.equals(" 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");
UserLevel = UserLevel.substring(0, 2);

View File

@ -17,12 +17,12 @@
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;
import java.util.*;
import java.sql.*;
import java.math.*;
import java.lang.reflect.Constructor;
import java.sql.ResultSet;
import java.sql.Timestamp;
import java.util.Properties;
import java.util.logging.Level;
import org.compiere.util.*;
import org.compiere.util.KeyNamePair;
/** Generated Model for AD_User
* @author Adempiere (generated)
@ -39,13 +39,15 @@ 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)
{
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);
// Y
setName (null);
setNotificationType (null);
// E
} */
} */
}
/** Load Constructor */
@ -76,17 +78,18 @@ public class X_AD_User extends PO implements I_AD_User, I_Persistent
return sb.toString();
}
/** AD_OrgTrx_ID AD_Reference_ID=130 */
public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
/** AD_OrgTrx_ID AD_Reference_ID=130 */
public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
/** Set Trx Organization.
@param AD_OrgTrx_ID
Performing or initiating organization
*/
public void setAD_OrgTrx_ID (int AD_OrgTrx_ID)
{
if (AD_OrgTrx_ID <= 0) set_Value (COLUMNNAME_AD_OrgTrx_ID, null);
else
set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID));
if (AD_OrgTrx_ID <= 0)
set_Value (COLUMNNAME_AD_OrgTrx_ID, null);
else
set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID));
}
/** Get Trx Organization.
@ -145,9 +148,10 @@ public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
*/
public void setC_BPartner_ID (int C_BPartner_ID)
{
if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null);
else
set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID));
if (C_BPartner_ID <= 0)
set_Value (COLUMNNAME_C_BPartner_ID, null);
else
set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID));
}
/** Get Business Partner .
@ -161,7 +165,7 @@ public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
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);
I_C_BPartner_Location result = null;
@ -183,9 +187,10 @@ public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
*/
public void setC_BPartner_Location_ID (int C_BPartner_Location_ID)
{
if (C_BPartner_Location_ID <= 0) set_Value (COLUMNNAME_C_BPartner_Location_ID, null);
else
set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID));
if (C_BPartner_Location_ID <= 0)
set_Value (COLUMNNAME_C_BPartner_Location_ID, null);
else
set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID));
}
/** Get Partner Location.
@ -199,7 +204,7 @@ public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
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);
I_C_Greeting result = null;
@ -221,9 +226,10 @@ public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
*/
public void setC_Greeting_ID (int C_Greeting_ID)
{
if (C_Greeting_ID <= 0) set_Value (COLUMNNAME_C_Greeting_ID, null);
else
set_Value (COLUMNNAME_C_Greeting_ID, Integer.valueOf(C_Greeting_ID));
if (C_Greeting_ID <= 0)
set_Value (COLUMNNAME_C_Greeting_ID, null);
else
set_Value (COLUMNNAME_C_Greeting_ID, Integer.valueOf(C_Greeting_ID));
}
/** Get Greeting.
@ -237,7 +243,7 @@ public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
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);
I_C_Job result = null;
@ -259,9 +265,10 @@ public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
*/
public void setC_Job_ID (int C_Job_ID)
{
if (C_Job_ID <= 0) set_Value (COLUMNNAME_C_Job_ID, null);
else
set_Value (COLUMNNAME_C_Job_ID, Integer.valueOf(C_Job_ID));
if (C_Job_ID <= 0)
set_Value (COLUMNNAME_C_Job_ID, null);
else
set_Value (COLUMNNAME_C_Job_ID, Integer.valueOf(C_Job_ID));
}
/** Get Position.
@ -281,6 +288,7 @@ public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
*/
public void setComments (String Comments)
{
if (Comments != null && Comments.length() > 2000)
{
log.warning("Length > 2000 - truncated");
@ -297,19 +305,25 @@ public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
return (String)get_Value(COLUMNNAME_Comments);
}
/** ConnectionProfile AD_Reference_ID=364 */
public static final int CONNECTIONPROFILE_AD_Reference_ID=364;/** LAN = L */
public static final String CONNECTIONPROFILE_LAN = "L";/** Terminal Server = T */
public static final String CONNECTIONPROFILE_TerminalServer = "T";/** VPN = V */
public static final String CONNECTIONPROFILE_VPN = "V";/** WAN = W */
public static final String CONNECTIONPROFILE_WAN = "W";
/** ConnectionProfile AD_Reference_ID=364 */
public static final int CONNECTIONPROFILE_AD_Reference_ID=364;
/** LAN = L */
public static final String CONNECTIONPROFILE_LAN = "L";
/** Terminal Server = T */
public static final String CONNECTIONPROFILE_TerminalServer = "T";
/** VPN = V */
public static final String CONNECTIONPROFILE_VPN = "V";
/** WAN = W */
public static final String CONNECTIONPROFILE_WAN = "W";
/** Set Connection Profile.
@param ConnectionProfile
How a Java Client connects to the server(s)
*/
public void setConnectionProfile (String ConnectionProfile)
{
if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProfile.equals("T") || ConnectionProfile.equals("V") || ConnectionProfile.equals("W")); else throw new IllegalArgumentException ("ConnectionProfile Invalid value - " + ConnectionProfile + " - Reference_ID=364 - L - T - V - W"); if (ConnectionProfile != null && ConnectionProfile.length() > 1)
if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProfile.equals("T") || ConnectionProfile.equals("V") || ConnectionProfile.equals("W")); else throw new IllegalArgumentException ("ConnectionProfile Invalid value - " + ConnectionProfile + " - Reference_ID=364 - L - T - V - W");
if (ConnectionProfile != null && ConnectionProfile.length() > 1)
{
log.warning("Length > 1 - truncated");
ConnectionProfile = ConnectionProfile.substring(0, 0);
@ -331,6 +345,7 @@ if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProf
*/
public void setDescription (String Description)
{
if (Description != null && Description.length() > 255)
{
log.warning("Length > 255 - truncated");
@ -353,6 +368,7 @@ if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProf
*/
public void setEMail (String EMail)
{
if (EMail != null && EMail.length() > 60)
{
log.warning("Length > 60 - truncated");
@ -375,6 +391,7 @@ if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProf
*/
public void setEMailUser (String EMailUser)
{
if (EMailUser != null && EMailUser.length() > 60)
{
log.warning("Length > 60 - truncated");
@ -397,6 +414,7 @@ if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProf
*/
public void setEMailUserPW (String EMailUserPW)
{
if (EMailUserPW != null && EMailUserPW.length() > 20)
{
log.warning("Length > 20 - truncated");
@ -419,6 +437,7 @@ if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProf
*/
public void setEMailVerify (String EMailVerify)
{
if (EMailVerify != null && EMailVerify.length() > 40)
{
log.warning("Length > 40 - truncated");
@ -458,6 +477,7 @@ if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProf
*/
public void setFax (String Fax)
{
if (Fax != null && Fax.length() > 40)
{
log.warning("Length > 40 - truncated");
@ -504,6 +524,7 @@ if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProf
*/
public void setLDAPUser (String LDAPUser)
{
if (LDAPUser != null && LDAPUser.length() > 60)
{
log.warning("Length > 60 - truncated");
@ -543,6 +564,7 @@ if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProf
*/
public void setLastResult (String LastResult)
{
if (LastResult != null && LastResult.length() > 255)
{
log.warning("Length > 255 - truncated");
@ -567,6 +589,7 @@ if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProf
{
if (Name == null)
throw new IllegalArgumentException ("Name is mandatory.");
if (Name.length() > 60)
{
log.warning("Length > 60 - truncated");
@ -591,19 +614,25 @@ if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProf
return new KeyNamePair(get_ID(), getName());
}
/** NotificationType AD_Reference_ID=344 */
public static final int NOTIFICATIONTYPE_AD_Reference_ID=344;/** EMail+Notice = B */
public static final String NOTIFICATIONTYPE_EMailPlusNotice = "B";/** EMail = E */
public static final String NOTIFICATIONTYPE_EMail = "E";/** Notice = N */
public static final String NOTIFICATIONTYPE_Notice = "N";/** None = X */
public static final String NOTIFICATIONTYPE_None = "X";
/** NotificationType AD_Reference_ID=344 */
public static final int NOTIFICATIONTYPE_AD_Reference_ID=344;
/** EMail = E */
public static final String NOTIFICATIONTYPE_EMail = "E";
/** Notice = N */
public static final String NOTIFICATIONTYPE_Notice = "N";
/** None = X */
public static final String NOTIFICATIONTYPE_None = "X";
/** EMail+Notice = B */
public static final String NOTIFICATIONTYPE_EMailPlusNotice = "B";
/** Set Notification Type.
@param NotificationType
Type of Notifications
*/
public void setNotificationType (String NotificationType)
{
if (NotificationType == null) throw new IllegalArgumentException ("NotificationType is mandatory");if (NotificationType.equals("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");
NotificationType = NotificationType.substring(0, 0);
@ -625,6 +654,7 @@ if (NotificationType == null) throw new IllegalArgumentException ("NotificationT
*/
public void setPassword (String Password)
{
if (Password != null && Password.length() > 40)
{
log.warning("Length > 40 - truncated");
@ -647,6 +677,7 @@ if (NotificationType == null) throw new IllegalArgumentException ("NotificationT
*/
public void setPhone (String Phone)
{
if (Phone != null && Phone.length() > 40)
{
log.warning("Length > 40 - truncated");
@ -669,6 +700,7 @@ if (NotificationType == null) throw new IllegalArgumentException ("NotificationT
*/
public void setPhone2 (String Phone2)
{
if (Phone2 != null && Phone2.length() > 40)
{
log.warning("Length > 40 - truncated");
@ -693,7 +725,7 @@ if (NotificationType == null) throw new IllegalArgumentException ("NotificationT
}
/** Get Process Now.
@return Process Now */
@return Process Now */
public boolean isProcessing ()
{
Object oo = get_Value(COLUMNNAME_Processing);
@ -706,17 +738,18 @@ if (NotificationType == null) throw new IllegalArgumentException ("NotificationT
return false;
}
/** Supervisor_ID AD_Reference_ID=110 */
public static final int SUPERVISOR_ID_AD_Reference_ID=110;
/** Supervisor_ID AD_Reference_ID=110 */
public static final int SUPERVISOR_ID_AD_Reference_ID=110;
/** Set Supervisor.
@param Supervisor_ID
Supervisor for this user/organization - used for escalation and approval
*/
public void setSupervisor_ID (int Supervisor_ID)
{
if (Supervisor_ID <= 0) set_Value (COLUMNNAME_Supervisor_ID, null);
else
set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID));
if (Supervisor_ID <= 0)
set_Value (COLUMNNAME_Supervisor_ID, null);
else
set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID));
}
/** Get Supervisor.
@ -736,6 +769,7 @@ public static final int SUPERVISOR_ID_AD_Reference_ID=110;
*/
public void setTitle (String Title)
{
if (Title != null && Title.length() > 40)
{
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);
}
/** Set UserPIN.
@param UserPIN UserPIN */
public void setUserPIN (String UserPIN)
{
if (UserPIN != null && UserPIN.length() > 20)
{
log.warning("Length > 20 - truncated");
UserPIN = UserPIN.substring(0, 19);
}
set_Value (COLUMNNAME_UserPIN, UserPIN);
}
/** Get UserPIN.
@return UserPIN */
public String getUserPIN ()
{
return (String)get_Value(COLUMNNAME_UserPIN);
}
/** Set Search Key.
@param Value
Search key for the record in the format required - must be unique
*/
public void setValue (String Value)
{
if (Value != null && Value.length() > 40)
{
log.warning("Length > 40 - truncated");

View File

@ -17,12 +17,14 @@
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;
import java.util.*;
import java.sql.*;
import java.math.*;
import java.lang.reflect.Constructor;
import java.math.BigDecimal;
import java.sql.ResultSet;
import java.sql.Timestamp;
import java.util.Properties;
import java.util.logging.Level;
import org.compiere.util.*;
import org.compiere.util.Env;
import org.compiere.util.KeyNamePair;
/** Generated Model for C_Order
* @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)
{
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_Currency_ID (0);
// @C_Currency_ID@
@ -96,7 +100,7 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent
setSalesRep_ID (0);
setSendEMail (false);
setTotalLines (Env.ZERO);
} */
} */
}
/** Load Constructor */
@ -127,17 +131,18 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent
return sb.toString();
}
/** AD_OrgTrx_ID AD_Reference_ID=130 */
public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
/** AD_OrgTrx_ID AD_Reference_ID=130 */
public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
/** Set Trx Organization.
@param AD_OrgTrx_ID
Performing or initiating organization
*/
public void setAD_OrgTrx_ID (int AD_OrgTrx_ID)
{
if (AD_OrgTrx_ID <= 0) set_Value (COLUMNNAME_AD_OrgTrx_ID, null);
else
set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID));
if (AD_OrgTrx_ID <= 0)
set_Value (COLUMNNAME_AD_OrgTrx_ID, null);
else
set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID));
}
/** Get Trx Organization.
@ -151,7 +156,7 @@ public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
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);
I_AD_User result = null;
@ -173,9 +178,10 @@ public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
if (AD_User_ID <= 0)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}
/** Get User/Contact.
@ -189,17 +195,52 @@ public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
return ii.intValue();
}
/** Bill_BPartner_ID AD_Reference_ID=138 */
public static final int BILL_BPARTNER_ID_AD_Reference_ID=138;
/** Set AmountRefunded.
@param AmountRefunded AmountRefunded */
public void setAmountRefunded (BigDecimal AmountRefunded)
{
set_Value (COLUMNNAME_AmountRefunded, AmountRefunded);
}
/** Get AmountRefunded.
@return AmountRefunded */
public BigDecimal getAmountRefunded ()
{
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmountRefunded);
if (bd == null)
return Env.ZERO;
return bd;
}
/** Set AmountTendered.
@param AmountTendered AmountTendered */
public void setAmountTendered (BigDecimal AmountTendered)
{
set_Value (COLUMNNAME_AmountTendered, AmountTendered);
}
/** Get AmountTendered.
@return AmountTendered */
public BigDecimal getAmountTendered ()
{
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmountTendered);
if (bd == null)
return Env.ZERO;
return bd;
}
/** Bill_BPartner_ID AD_Reference_ID=138 */
public static final int BILL_BPARTNER_ID_AD_Reference_ID=138;
/** Set Invoice Partner.
@param Bill_BPartner_ID
Business Partner to be invoiced
*/
public void setBill_BPartner_ID (int Bill_BPartner_ID)
{
if (Bill_BPartner_ID <= 0) set_Value (COLUMNNAME_Bill_BPartner_ID, null);
else
set_Value (COLUMNNAME_Bill_BPartner_ID, Integer.valueOf(Bill_BPartner_ID));
if (Bill_BPartner_ID <= 0)
set_Value (COLUMNNAME_Bill_BPartner_ID, null);
else
set_Value (COLUMNNAME_Bill_BPartner_ID, Integer.valueOf(Bill_BPartner_ID));
}
/** Get Invoice Partner.
@ -213,17 +254,18 @@ public static final int BILL_BPARTNER_ID_AD_Reference_ID=138;
return ii.intValue();
}
/** Bill_Location_ID AD_Reference_ID=159 */
public static final int BILL_LOCATION_ID_AD_Reference_ID=159;
/** Bill_Location_ID AD_Reference_ID=159 */
public static final int BILL_LOCATION_ID_AD_Reference_ID=159;
/** Set Invoice Location.
@param Bill_Location_ID
Business Partner Location for invoicing
*/
public void setBill_Location_ID (int Bill_Location_ID)
{
if (Bill_Location_ID <= 0) set_Value (COLUMNNAME_Bill_Location_ID, null);
else
set_Value (COLUMNNAME_Bill_Location_ID, Integer.valueOf(Bill_Location_ID));
if (Bill_Location_ID <= 0)
set_Value (COLUMNNAME_Bill_Location_ID, null);
else
set_Value (COLUMNNAME_Bill_Location_ID, Integer.valueOf(Bill_Location_ID));
}
/** Get Invoice Location.
@ -237,17 +279,18 @@ public static final int BILL_LOCATION_ID_AD_Reference_ID=159;
return ii.intValue();
}
/** Bill_User_ID AD_Reference_ID=110 */
public static final int BILL_USER_ID_AD_Reference_ID=110;
/** Bill_User_ID AD_Reference_ID=110 */
public static final int BILL_USER_ID_AD_Reference_ID=110;
/** Set Invoice Contact.
@param Bill_User_ID
Business Partner Contact for invoicing
*/
public void setBill_User_ID (int Bill_User_ID)
{
if (Bill_User_ID <= 0) set_Value (COLUMNNAME_Bill_User_ID, null);
else
set_Value (COLUMNNAME_Bill_User_ID, Integer.valueOf(Bill_User_ID));
if (Bill_User_ID <= 0)
set_Value (COLUMNNAME_Bill_User_ID, null);
else
set_Value (COLUMNNAME_Bill_User_ID, Integer.valueOf(Bill_User_ID));
}
/** Get Invoice Contact.
@ -261,7 +304,7 @@ public static final int BILL_USER_ID_AD_Reference_ID=110;
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);
I_C_Activity result = null;
@ -283,9 +326,10 @@ public static final int BILL_USER_ID_AD_Reference_ID=110;
*/
public void setC_Activity_ID (int C_Activity_ID)
{
if (C_Activity_ID <= 0) set_Value (COLUMNNAME_C_Activity_ID, null);
else
set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID));
if (C_Activity_ID <= 0)
set_Value (COLUMNNAME_C_Activity_ID, null);
else
set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID));
}
/** Get Activity.
@ -321,7 +365,7 @@ public static final int BILL_USER_ID_AD_Reference_ID=110;
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);
I_C_BPartner_Location result = null;
@ -359,7 +403,7 @@ public static final int BILL_USER_ID_AD_Reference_ID=110;
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);
I_C_Campaign result = null;
@ -381,9 +425,10 @@ public static final int BILL_USER_ID_AD_Reference_ID=110;
*/
public void setC_Campaign_ID (int C_Campaign_ID)
{
if (C_Campaign_ID <= 0) set_Value (COLUMNNAME_C_Campaign_ID, null);
else
set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID));
if (C_Campaign_ID <= 0)
set_Value (COLUMNNAME_C_Campaign_ID, null);
else
set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID));
}
/** Get Campaign.
@ -403,9 +448,10 @@ public static final int BILL_USER_ID_AD_Reference_ID=110;
*/
public void setC_CashLine_ID (int C_CashLine_ID)
{
if (C_CashLine_ID <= 0) set_Value (COLUMNNAME_C_CashLine_ID, null);
else
set_Value (COLUMNNAME_C_CashLine_ID, Integer.valueOf(C_CashLine_ID));
if (C_CashLine_ID <= 0)
set_Value (COLUMNNAME_C_CashLine_ID, null);
else
set_Value (COLUMNNAME_C_CashLine_ID, Integer.valueOf(C_CashLine_ID));
}
/** Get Cash Journal Line.
@ -419,17 +465,18 @@ public static final int BILL_USER_ID_AD_Reference_ID=110;
return ii.intValue();
}
/** C_Charge_ID AD_Reference_ID=200 */
public static final int C_CHARGE_ID_AD_Reference_ID=200;
/** C_Charge_ID AD_Reference_ID=200 */
public static final int C_CHARGE_ID_AD_Reference_ID=200;
/** Set Charge.
@param C_Charge_ID
Additional document charges
*/
public void setC_Charge_ID (int C_Charge_ID)
{
if (C_Charge_ID <= 0) set_Value (COLUMNNAME_C_Charge_ID, null);
else
set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID));
if (C_Charge_ID <= 0)
set_Value (COLUMNNAME_C_Charge_ID, null);
else
set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID));
}
/** Get Charge.
@ -443,7 +490,7 @@ public static final int C_CHARGE_ID_AD_Reference_ID=200;
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);
I_C_ConversionType result = null;
@ -465,9 +512,10 @@ public static final int C_CHARGE_ID_AD_Reference_ID=200;
*/
public void setC_ConversionType_ID (int C_ConversionType_ID)
{
if (C_ConversionType_ID <= 0) set_Value (COLUMNNAME_C_ConversionType_ID, null);
else
set_Value (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID));
if (C_ConversionType_ID <= 0)
set_Value (COLUMNNAME_C_ConversionType_ID, null);
else
set_Value (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID));
}
/** Get Currency Type.
@ -481,7 +529,7 @@ public static final int C_CHARGE_ID_AD_Reference_ID=200;
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);
I_C_Currency result = null;
@ -519,8 +567,8 @@ public static final int C_CHARGE_ID_AD_Reference_ID=200;
return ii.intValue();
}
/** C_DocTypeTarget_ID AD_Reference_ID=170 */
public static final int C_DOCTYPETARGET_ID_AD_Reference_ID=170;
/** C_DocTypeTarget_ID AD_Reference_ID=170 */
public static final int C_DOCTYPETARGET_ID_AD_Reference_ID=170;
/** Set Target Document Type.
@param C_DocTypeTarget_ID
Target document type for conversing documents
@ -543,9 +591,9 @@ public static final int C_DOCTYPETARGET_ID_AD_Reference_ID=170;
return ii.intValue();
}
/** C_DocType_ID AD_Reference_ID=170 */
public static final int C_DOCTYPE_ID_AD_Reference_ID=170;
public I_C_DocType getI_C_DocType() throws Exception
/** C_DocType_ID AD_Reference_ID=170 */
public static final int C_DOCTYPE_ID_AD_Reference_ID=170;
public I_C_DocType getC_DocType() throws Exception
{
Class<?> clazz = MTable.getClass(I_C_DocType.Table_Name);
I_C_DocType result = null;
@ -605,7 +653,43 @@ public static final int C_DOCTYPE_ID_AD_Reference_ID=170;
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);
I_C_PaymentTerm result = null;
@ -649,9 +733,10 @@ public static final int C_DOCTYPE_ID_AD_Reference_ID=170;
*/
public void setC_Payment_ID (int C_Payment_ID)
{
if (C_Payment_ID <= 0) set_Value (COLUMNNAME_C_Payment_ID, null);
else
set_Value (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID));
if (C_Payment_ID <= 0)
set_Value (COLUMNNAME_C_Payment_ID, null);
else
set_Value (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID));
}
/** Get Payment.
@ -665,7 +750,7 @@ public static final int C_DOCTYPE_ID_AD_Reference_ID=170;
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);
I_C_Project result = null;
@ -687,9 +772,10 @@ public static final int C_DOCTYPE_ID_AD_Reference_ID=170;
*/
public void setC_Project_ID (int C_Project_ID)
{
if (C_Project_ID <= 0) set_Value (COLUMNNAME_C_Project_ID, null);
else
set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID));
if (C_Project_ID <= 0)
set_Value (COLUMNNAME_C_Project_ID, null);
else
set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID));
}
/** Get Project.
@ -729,6 +815,7 @@ public static final int C_DOCTYPE_ID_AD_Reference_ID=170;
*/
public void setCopyFrom (String CopyFrom)
{
if (CopyFrom != null && CopyFrom.length() > 1)
{
log.warning("Length > 1 - truncated");
@ -819,21 +906,29 @@ public static final int C_DOCTYPE_ID_AD_Reference_ID=170;
return (Timestamp)get_Value(COLUMNNAME_DatePromised);
}
/** DeliveryRule AD_Reference_ID=151 */
public static final int DELIVERYRULE_AD_Reference_ID=151;/** Availability = A */
public static final String DELIVERYRULE_Availability = "A";/** Force = F */
public static final String DELIVERYRULE_Force = "F";/** Complete Line = L */
public static final String DELIVERYRULE_CompleteLine = "L";/** Manual = M */
public static final String DELIVERYRULE_Manual = "M";/** Complete Order = O */
public static final String DELIVERYRULE_CompleteOrder = "O";/** After Receipt = R */
public static final String DELIVERYRULE_AfterReceipt = "R";
/** DeliveryRule AD_Reference_ID=151 */
public static final int DELIVERYRULE_AD_Reference_ID=151;
/** After Receipt = R */
public static final String DELIVERYRULE_AfterReceipt = "R";
/** Availability = A */
public static final String DELIVERYRULE_Availability = "A";
/** Complete Line = L */
public static final String DELIVERYRULE_CompleteLine = "L";
/** Complete Order = O */
public static final String DELIVERYRULE_CompleteOrder = "O";
/** Force = F */
public static final String DELIVERYRULE_Force = "F";
/** Manual = M */
public static final String DELIVERYRULE_Manual = "M";
/** Set Delivery Rule.
@param DeliveryRule
Defines the timing of Delivery
*/
public void setDeliveryRule (String DeliveryRule)
{
if (DeliveryRule == null) throw new IllegalArgumentException ("DeliveryRule is mandatory");if (DeliveryRule.equals("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");
DeliveryRule = DeliveryRule.substring(0, 0);
@ -849,18 +944,23 @@ if (DeliveryRule == null) throw new IllegalArgumentException ("DeliveryRule is m
return (String)get_Value(COLUMNNAME_DeliveryRule);
}
/** DeliveryViaRule AD_Reference_ID=152 */
public static final int DELIVERYVIARULE_AD_Reference_ID=152;/** Delivery = D */
public static final String DELIVERYVIARULE_Delivery = "D";/** Pickup = P */
public static final String DELIVERYVIARULE_Pickup = "P";/** Shipper = S */
public static final String DELIVERYVIARULE_Shipper = "S";
/** DeliveryViaRule AD_Reference_ID=152 */
public static final int DELIVERYVIARULE_AD_Reference_ID=152;
/** Pickup = P */
public static final String DELIVERYVIARULE_Pickup = "P";
/** Delivery = D */
public static final String DELIVERYVIARULE_Delivery = "D";
/** Shipper = S */
public static final String DELIVERYVIARULE_Shipper = "S";
/** Set Delivery Via.
@param DeliveryViaRule
How the order will be delivered
*/
public void setDeliveryViaRule (String DeliveryViaRule)
{
if (DeliveryViaRule == null) throw new IllegalArgumentException ("DeliveryViaRule is mandatory");if (DeliveryViaRule.equals("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");
DeliveryViaRule = DeliveryViaRule.substring(0, 0);
@ -882,6 +982,7 @@ if (DeliveryViaRule == null) throw new IllegalArgumentException ("DeliveryViaRul
*/
public void setDescription (String Description)
{
if (Description != null && Description.length() > 255)
{
log.warning("Length > 255 - truncated");
@ -898,29 +999,45 @@ if (DeliveryViaRule == null) throw new IllegalArgumentException ("DeliveryViaRul
return (String)get_Value(COLUMNNAME_Description);
}
/** DocAction AD_Reference_ID=135 */
public static final int DOCACTION_AD_Reference_ID=135;/** <None> = -- */
public static final String DOCACTION_None = "--";/** Approve = AP */
public static final String DOCACTION_Approve = "AP";/** Close = CL */
public static final String DOCACTION_Close = "CL";/** Complete = CO */
public static final String DOCACTION_Complete = "CO";/** Invalidate = IN */
public static final String DOCACTION_Invalidate = "IN";/** Post = PO */
public static final String DOCACTION_Post = "PO";/** Prepare = PR */
public static final String DOCACTION_Prepare = "PR";/** Reverse - Accrual = RA */
public static final String DOCACTION_Reverse_Accrual = "RA";/** Reverse - Correct = RC */
public static final String DOCACTION_Reverse_Correct = "RC";/** Re-activate = RE */
public static final String DOCACTION_Re_Activate = "RE";/** Reject = RJ */
public static final String DOCACTION_Reject = "RJ";/** Void = VO */
public static final String DOCACTION_Void = "VO";/** Wait Complete = WC */
public static final String DOCACTION_WaitComplete = "WC";/** Unlock = XL */
public static final String DOCACTION_Unlock = "XL";
/** DocAction AD_Reference_ID=135 */
public static final int DOCACTION_AD_Reference_ID=135;
/** Complete = CO */
public static final String DOCACTION_Complete = "CO";
/** Approve = AP */
public static final String DOCACTION_Approve = "AP";
/** Reject = RJ */
public static final String DOCACTION_Reject = "RJ";
/** Post = PO */
public static final String DOCACTION_Post = "PO";
/** Void = VO */
public static final String DOCACTION_Void = "VO";
/** Close = CL */
public static final String DOCACTION_Close = "CL";
/** Reverse - Correct = RC */
public static final String DOCACTION_Reverse_Correct = "RC";
/** Reverse - Accrual = RA */
public static final String DOCACTION_Reverse_Accrual = "RA";
/** Invalidate = IN */
public static final String DOCACTION_Invalidate = "IN";
/** Re-activate = RE */
public static final String DOCACTION_Re_Activate = "RE";
/** <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";
/** Wait Complete = WC */
public static final String DOCACTION_WaitComplete = "WC";
/** Set Document Action.
@param DocAction
The targeted status of the document
*/
public void setDocAction (String DocAction)
{
if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory");if (DocAction.equals("--") || 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");
DocAction = DocAction.substring(0, 1);
@ -936,27 +1053,41 @@ if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandato
return (String)get_Value(COLUMNNAME_DocAction);
}
/** DocStatus AD_Reference_ID=131 */
public static final int DOCSTATUS_AD_Reference_ID=131;/** Unknown = ?? */
public static final String DOCSTATUS_Unknown = "??";/** Approved = AP */
public static final String DOCSTATUS_Approved = "AP";/** Closed = CL */
public static final String DOCSTATUS_Closed = "CL";/** Completed = CO */
public static final String DOCSTATUS_Completed = "CO";/** Drafted = DR */
public static final String DOCSTATUS_Drafted = "DR";/** Invalid = IN */
public static final String DOCSTATUS_Invalid = "IN";/** In Progress = IP */
public static final String DOCSTATUS_InProgress = "IP";/** Not Approved = NA */
public static final String DOCSTATUS_NotApproved = "NA";/** Reversed = RE */
public static final String DOCSTATUS_Reversed = "RE";/** Voided = VO */
public static final String DOCSTATUS_Voided = "VO";/** Waiting Confirmation = WC */
public static final String DOCSTATUS_WaitingConfirmation = "WC";/** Waiting Payment = WP */
public static final String DOCSTATUS_WaitingPayment = "WP";
/** DocStatus AD_Reference_ID=131 */
public static final int DOCSTATUS_AD_Reference_ID=131;
/** Drafted = DR */
public static final String DOCSTATUS_Drafted = "DR";
/** Completed = CO */
public static final String DOCSTATUS_Completed = "CO";
/** Approved = AP */
public static final String DOCSTATUS_Approved = "AP";
/** Not Approved = NA */
public static final String DOCSTATUS_NotApproved = "NA";
/** Voided = VO */
public static final String DOCSTATUS_Voided = "VO";
/** Invalid = IN */
public static final String DOCSTATUS_Invalid = "IN";
/** Reversed = RE */
public static final String DOCSTATUS_Reversed = "RE";
/** Closed = CL */
public static final String DOCSTATUS_Closed = "CL";
/** Unknown = ?? */
public static final String DOCSTATUS_Unknown = "??";
/** In Progress = IP */
public static final String DOCSTATUS_InProgress = "IP";
/** Waiting Payment = WP */
public static final String DOCSTATUS_WaitingPayment = "WP";
/** Waiting Confirmation = WC */
public static final String DOCSTATUS_WaitingConfirmation = "WC";
/** Set Document Status.
@param DocStatus
The current status of the document
*/
public void setDocStatus (String DocStatus)
{
if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory");if (DocStatus.equals("??") || 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");
DocStatus = DocStatus.substring(0, 1);
@ -980,6 +1111,7 @@ if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandato
{
if (DocumentNo == null)
throw new IllegalArgumentException ("DocumentNo is mandatory.");
if (DocumentNo.length() > 30)
{
log.warning("Length > 30 - truncated");
@ -1026,19 +1158,25 @@ if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandato
return bd;
}
/** FreightCostRule AD_Reference_ID=153 */
public static final int FREIGHTCOSTRULE_AD_Reference_ID=153;/** Calculated = C */
public static final String FREIGHTCOSTRULE_Calculated = "C";/** Fix price = F */
public static final String FREIGHTCOSTRULE_FixPrice = "F";/** Freight included = I */
public static final String FREIGHTCOSTRULE_FreightIncluded = "I";/** Line = L */
public static final String FREIGHTCOSTRULE_Line = "L";
/** FreightCostRule AD_Reference_ID=153 */
public static final int FREIGHTCOSTRULE_AD_Reference_ID=153;
/** Freight included = I */
public static final String FREIGHTCOSTRULE_FreightIncluded = "I";
/** Fix price = F */
public static final String FREIGHTCOSTRULE_FixPrice = "F";
/** Calculated = C */
public static final String FREIGHTCOSTRULE_Calculated = "C";
/** Line = L */
public static final String FREIGHTCOSTRULE_Line = "L";
/** Set Freight Cost Rule.
@param FreightCostRule
Method for charging Freight
*/
public void setFreightCostRule (String FreightCostRule)
{
if (FreightCostRule == null) throw new IllegalArgumentException ("FreightCostRule is mandatory");if (FreightCostRule.equals("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");
FreightCostRule = FreightCostRule.substring(0, 0);
@ -1076,19 +1214,25 @@ if (FreightCostRule == null) throw new IllegalArgumentException ("FreightCostRul
return bd;
}
/** InvoiceRule AD_Reference_ID=150 */
public static final int INVOICERULE_AD_Reference_ID=150;/** After Delivery = D */
public static final String INVOICERULE_AfterDelivery = "D";/** Immediate = I */
public static final String INVOICERULE_Immediate = "I";/** After Order delivered = O */
public static final String INVOICERULE_AfterOrderDelivered = "O";/** Customer Schedule after Delivery = S */
public static final String INVOICERULE_CustomerScheduleAfterDelivery = "S";
/** InvoiceRule AD_Reference_ID=150 */
public static final int INVOICERULE_AD_Reference_ID=150;
/** After Order delivered = O */
public static final String INVOICERULE_AfterOrderDelivered = "O";
/** After Delivery = D */
public static final String INVOICERULE_AfterDelivery = "D";
/** Customer Schedule after Delivery = S */
public static final String INVOICERULE_CustomerScheduleAfterDelivery = "S";
/** Immediate = I */
public static final String INVOICERULE_Immediate = "I";
/** Set Invoice Rule.
@param InvoiceRule
Frequency and method of invoicing
*/
public void setInvoiceRule (String InvoiceRule)
{
if (InvoiceRule == null) throw new IllegalArgumentException ("InvoiceRule is mandatory");if (InvoiceRule.equals("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");
InvoiceRule = InvoiceRule.substring(0, 0);
@ -1160,7 +1304,7 @@ if (InvoiceRule == null) throw new IllegalArgumentException ("InvoiceRule is man
}
/** Get Delivered.
@return Delivered */
@return Delivered */
public boolean isDelivered ()
{
Object oo = get_Value(COLUMNNAME_IsDelivered);
@ -1301,7 +1445,7 @@ if (InvoiceRule == null) throw new IllegalArgumentException ("InvoiceRule is man
}
/** Get Selected.
@return Selected */
@return Selected */
public boolean isSelected ()
{
Object oo = get_Value(COLUMNNAME_IsSelected);
@ -1386,7 +1530,7 @@ if (InvoiceRule == null) throw new IllegalArgumentException ("InvoiceRule is man
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);
I_M_PriceList result = null;
@ -1424,7 +1568,7 @@ if (InvoiceRule == null) throw new IllegalArgumentException ("InvoiceRule is man
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);
I_M_Shipper result = null;
@ -1446,9 +1590,10 @@ if (InvoiceRule == null) throw new IllegalArgumentException ("InvoiceRule is man
*/
public void setM_Shipper_ID (int M_Shipper_ID)
{
if (M_Shipper_ID <= 0) set_Value (COLUMNNAME_M_Shipper_ID, null);
else
set_Value (COLUMNNAME_M_Shipper_ID, Integer.valueOf(M_Shipper_ID));
if (M_Shipper_ID <= 0)
set_Value (COLUMNNAME_M_Shipper_ID, null);
else
set_Value (COLUMNNAME_M_Shipper_ID, Integer.valueOf(M_Shipper_ID));
}
/** Get Shipper.
@ -1462,7 +1607,7 @@ if (InvoiceRule == null) throw new IllegalArgumentException ("InvoiceRule is man
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);
I_M_Warehouse result = null;
@ -1500,12 +1645,33 @@ if (InvoiceRule == null) throw new IllegalArgumentException ("InvoiceRule is man
return ii.intValue();
}
/** Set OrderType.
@param OrderType OrderType */
public void setOrderType (String OrderType)
{
if (OrderType != null && OrderType.length() > 510)
{
log.warning("Length > 510 - truncated");
OrderType = OrderType.substring(0, 509);
}
set_Value (COLUMNNAME_OrderType, OrderType);
}
/** Get OrderType.
@return OrderType */
public String getOrderType ()
{
return (String)get_Value(COLUMNNAME_OrderType);
}
/** Set Order Reference.
@param POReference
Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner
*/
public void setPOReference (String POReference)
{
if (POReference != null && POReference.length() > 20)
{
log.warning("Length > 20 - truncated");
@ -1528,9 +1694,10 @@ if (InvoiceRule == null) throw new IllegalArgumentException ("InvoiceRule is man
*/
public void setPay_BPartner_ID (int Pay_BPartner_ID)
{
if (Pay_BPartner_ID <= 0) set_Value (COLUMNNAME_Pay_BPartner_ID, null);
else
set_Value (COLUMNNAME_Pay_BPartner_ID, Integer.valueOf(Pay_BPartner_ID));
if (Pay_BPartner_ID <= 0)
set_Value (COLUMNNAME_Pay_BPartner_ID, null);
else
set_Value (COLUMNNAME_Pay_BPartner_ID, Integer.valueOf(Pay_BPartner_ID));
}
/** Get Payment BPartner.
@ -1550,9 +1717,10 @@ if (InvoiceRule == null) throw new IllegalArgumentException ("InvoiceRule is man
*/
public void setPay_Location_ID (int Pay_Location_ID)
{
if (Pay_Location_ID <= 0) set_Value (COLUMNNAME_Pay_Location_ID, null);
else
set_Value (COLUMNNAME_Pay_Location_ID, Integer.valueOf(Pay_Location_ID));
if (Pay_Location_ID <= 0)
set_Value (COLUMNNAME_Pay_Location_ID, null);
else
set_Value (COLUMNNAME_Pay_Location_ID, Integer.valueOf(Pay_Location_ID));
}
/** Get Payment Location.
@ -1566,21 +1734,29 @@ if (InvoiceRule == null) throw new IllegalArgumentException ("InvoiceRule is man
return ii.intValue();
}
/** PaymentRule AD_Reference_ID=195 */
public static final int PAYMENTRULE_AD_Reference_ID=195;/** Cash = B */
public static final String PAYMENTRULE_Cash = "B";/** Direct Debit = D */
public static final String PAYMENTRULE_DirectDebit = "D";/** Credit Card = K */
public static final String PAYMENTRULE_CreditCard = "K";/** On Credit = P */
public static final String PAYMENTRULE_OnCredit = "P";/** Check = S */
public static final String PAYMENTRULE_Check = "S";/** Direct Deposit = T */
public static final String PAYMENTRULE_DirectDeposit = "T";
/** PaymentRule AD_Reference_ID=195 */
public static final int PAYMENTRULE_AD_Reference_ID=195;
/** Cash = B */
public static final String PAYMENTRULE_Cash = "B";
/** Credit Card = K */
public static final String PAYMENTRULE_CreditCard = "K";
/** Direct Deposit = T */
public static final String PAYMENTRULE_DirectDeposit = "T";
/** Check = S */
public static final String PAYMENTRULE_Check = "S";
/** On Credit = P */
public static final String PAYMENTRULE_OnCredit = "P";
/** Direct Debit = D */
public static final String PAYMENTRULE_DirectDebit = "D";
/** Set Payment Rule.
@param PaymentRule
How you pay the invoice
*/
public void setPaymentRule (String PaymentRule)
{
if (PaymentRule == null) throw new IllegalArgumentException ("PaymentRule is mandatory");if (PaymentRule.equals("B") || PaymentRule.equals("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");
PaymentRule = PaymentRule.substring(0, 0);
@ -1620,20 +1796,27 @@ if (PaymentRule == null) throw new IllegalArgumentException ("PaymentRule is man
return false;
}
/** PriorityRule AD_Reference_ID=154 */
public static final int PRIORITYRULE_AD_Reference_ID=154;/** Urgent = 1 */
public static final String PRIORITYRULE_Urgent = "1";/** High = 3 */
public static final String PRIORITYRULE_High = "3";/** Medium = 5 */
public static final String PRIORITYRULE_Medium = "5";/** Low = 7 */
public static final String PRIORITYRULE_Low = "7";/** Minor = 9 */
public static final String PRIORITYRULE_Minor = "9";
/** PriorityRule AD_Reference_ID=154 */
public static final int PRIORITYRULE_AD_Reference_ID=154;
/** High = 3 */
public static final String PRIORITYRULE_High = "3";
/** Medium = 5 */
public static final String PRIORITYRULE_Medium = "5";
/** Low = 7 */
public static final String PRIORITYRULE_Low = "7";
/** Urgent = 1 */
public static final String PRIORITYRULE_Urgent = "1";
/** Minor = 9 */
public static final String PRIORITYRULE_Minor = "9";
/** Set Priority.
@param PriorityRule
Priority of a document
*/
public void setPriorityRule (String PriorityRule)
{
if (PriorityRule == null) throw new IllegalArgumentException ("PriorityRule is mandatory");if (PriorityRule.equals("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");
PriorityRule = PriorityRule.substring(0, 0);
@ -1681,7 +1864,7 @@ if (PriorityRule == null) throw new IllegalArgumentException ("PriorityRule is m
}
/** Get Process Now.
@return Process Now */
@return Process Now */
public boolean isProcessing ()
{
Object oo = get_Value(COLUMNNAME_Processing);
@ -1694,17 +1877,18 @@ if (PriorityRule == null) throw new IllegalArgumentException ("PriorityRule is m
return false;
}
/** Ref_Order_ID AD_Reference_ID=290 */
public static final int REF_ORDER_ID_AD_Reference_ID=290;
/** Ref_Order_ID AD_Reference_ID=290 */
public static final int REF_ORDER_ID_AD_Reference_ID=290;
/** Set Referenced Order.
@param Ref_Order_ID
Reference to corresponding Sales/Purchase Order
*/
public void setRef_Order_ID (int Ref_Order_ID)
{
if (Ref_Order_ID <= 0) set_Value (COLUMNNAME_Ref_Order_ID, null);
else
set_Value (COLUMNNAME_Ref_Order_ID, Integer.valueOf(Ref_Order_ID));
if (Ref_Order_ID <= 0)
set_Value (COLUMNNAME_Ref_Order_ID, null);
else
set_Value (COLUMNNAME_Ref_Order_ID, Integer.valueOf(Ref_Order_ID));
}
/** Get Referenced Order.
@ -1718,8 +1902,8 @@ public static final int REF_ORDER_ID_AD_Reference_ID=290;
return ii.intValue();
}
/** SalesRep_ID AD_Reference_ID=190 */
public static final int SALESREP_ID_AD_Reference_ID=190;
/** SalesRep_ID AD_Reference_ID=190 */
public static final int SALESREP_ID_AD_Reference_ID=190;
/** Set Sales Representative.
@param SalesRep_ID
Sales Representative or Company Agent
@ -1788,17 +1972,18 @@ public static final int SALESREP_ID_AD_Reference_ID=190;
return bd;
}
/** User1_ID AD_Reference_ID=134 */
public static final int USER1_ID_AD_Reference_ID=134;
/** User1_ID AD_Reference_ID=134 */
public static final int USER1_ID_AD_Reference_ID=134;
/** Set User List 1.
@param User1_ID
User defined list element #1
*/
public void setUser1_ID (int User1_ID)
{
if (User1_ID <= 0) set_Value (COLUMNNAME_User1_ID, null);
else
set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID));
if (User1_ID <= 0)
set_Value (COLUMNNAME_User1_ID, null);
else
set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID));
}
/** Get User List 1.
@ -1812,17 +1997,18 @@ public static final int USER1_ID_AD_Reference_ID=134;
return ii.intValue();
}
/** User2_ID AD_Reference_ID=137 */
public static final int USER2_ID_AD_Reference_ID=137;
/** User2_ID AD_Reference_ID=137 */
public static final int USER2_ID_AD_Reference_ID=137;
/** Set User List 2.
@param User2_ID
User defined list element #2
*/
public void setUser2_ID (int User2_ID)
{
if (User2_ID <= 0) set_Value (COLUMNNAME_User2_ID, null);
else
set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID));
if (User2_ID <= 0)
set_Value (COLUMNNAME_User2_ID, null);
else
set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID));
}
/** Get User List 2.

View File

@ -17,12 +17,14 @@
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;
import java.util.*;
import java.sql.*;
import java.math.*;
import java.lang.reflect.Constructor;
import java.math.BigDecimal;
import java.sql.ResultSet;
import java.sql.Timestamp;
import java.util.Properties;
import java.util.logging.Level;
import org.compiere.util.*;
import org.compiere.util.Env;
import org.compiere.util.KeyNamePair;
/** Generated Model for M_Product
* @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)
{
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);
setIsBOM (false);
// N
@ -67,7 +71,7 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
setProductType (null);
// I
setValue (null);
} */
} */
}
/** Load Constructor */
@ -98,7 +102,7 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
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);
I_C_RevenueRecognition result = null;
@ -120,9 +124,10 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
*/
public void setC_RevenueRecognition_ID (int C_RevenueRecognition_ID)
{
if (C_RevenueRecognition_ID <= 0) set_Value (COLUMNNAME_C_RevenueRecognition_ID, null);
else
set_Value (COLUMNNAME_C_RevenueRecognition_ID, Integer.valueOf(C_RevenueRecognition_ID));
if (C_RevenueRecognition_ID <= 0)
set_Value (COLUMNNAME_C_RevenueRecognition_ID, null);
else
set_Value (COLUMNNAME_C_RevenueRecognition_ID, Integer.valueOf(C_RevenueRecognition_ID));
}
/** Get Revenue Recognition.
@ -142,9 +147,10 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
*/
public void setC_SubscriptionType_ID (int C_SubscriptionType_ID)
{
if (C_SubscriptionType_ID <= 0) set_Value (COLUMNNAME_C_SubscriptionType_ID, null);
else
set_Value (COLUMNNAME_C_SubscriptionType_ID, Integer.valueOf(C_SubscriptionType_ID));
if (C_SubscriptionType_ID <= 0)
set_Value (COLUMNNAME_C_SubscriptionType_ID, null);
else
set_Value (COLUMNNAME_C_SubscriptionType_ID, Integer.valueOf(C_SubscriptionType_ID));
}
/** Get Subscription Type.
@ -158,7 +164,7 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
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);
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();
}
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);
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)
{
if (Classification != null && Classification.length() > 1)
{
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)
{
if (Description != null && Description.length() > 255)
{
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)
{
if (DescriptionURL != null && DescriptionURL.length() > 120)
{
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)
{
if (DocumentNote != null && DocumentNote.length() > 2000)
{
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);
}
/** Set Download URL.
@param DownloadURL
URL of the Download files
*/
public void setDownloadURL (String DownloadURL)
/** Set Group1.
@param Group1 Group1 */
public void setGroup1 (String Group1)
{
if (DownloadURL != null && DownloadURL.length() > 120)
if (Group1 != null && Group1.length() > 255)
{
log.warning("Length > 120 - truncated");
DownloadURL = DownloadURL.substring(0, 119);
log.warning("Length > 255 - truncated");
Group1 = Group1.substring(0, 254);
}
set_Value (COLUMNNAME_DownloadURL, DownloadURL);
set_Value (COLUMNNAME_Group1, Group1);
}
/** Get Download URL.
@return URL of the Download files
*/
public String getDownloadURL ()
/** Get Group1.
@return Group1 */
public String getGroup1 ()
{
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.
@ -431,6 +459,7 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
*/
public void setHelp (String Help)
{
if (Help != null && Help.length() > 2000)
{
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)
{
if (ImageURL != null && ImageURL.length() > 120)
{
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();
}
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);
I_M_AttributeSet result = null;
@ -801,9 +831,10 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
*/
public void setM_AttributeSet_ID (int M_AttributeSet_ID)
{
if (M_AttributeSet_ID <= 0) set_Value (COLUMNNAME_M_AttributeSet_ID, null);
else
set_Value (COLUMNNAME_M_AttributeSet_ID, Integer.valueOf(M_AttributeSet_ID));
if (M_AttributeSet_ID <= 0)
set_Value (COLUMNNAME_M_AttributeSet_ID, null);
else
set_Value (COLUMNNAME_M_AttributeSet_ID, Integer.valueOf(M_AttributeSet_ID));
}
/** Get Attribute Set.
@ -817,7 +848,7 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
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);
I_M_FreightCategory result = null;
@ -839,9 +870,10 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
*/
public void setM_FreightCategory_ID (int M_FreightCategory_ID)
{
if (M_FreightCategory_ID <= 0) set_Value (COLUMNNAME_M_FreightCategory_ID, null);
else
set_Value (COLUMNNAME_M_FreightCategory_ID, Integer.valueOf(M_FreightCategory_ID));
if (M_FreightCategory_ID <= 0)
set_Value (COLUMNNAME_M_FreightCategory_ID, null);
else
set_Value (COLUMNNAME_M_FreightCategory_ID, Integer.valueOf(M_FreightCategory_ID));
}
/** Get Freight Category.
@ -861,9 +893,10 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
*/
public void setM_Locator_ID (int M_Locator_ID)
{
if (M_Locator_ID <= 0) set_Value (COLUMNNAME_M_Locator_ID, null);
else
set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID));
if (M_Locator_ID <= 0)
set_Value (COLUMNNAME_M_Locator_ID, null);
else
set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID));
}
/** Get Locator.
@ -877,9 +910,9 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
return ii.intValue();
}
/** M_Product_Category_ID AD_Reference_ID=163 */
public static final int M_PRODUCT_CATEGORY_ID_AD_Reference_ID=163;
public I_M_Product_Category getI_M_Product_Category() throws Exception
/** M_Product_Category_ID AD_Reference_ID=163 */
public static final int M_PRODUCT_CATEGORY_ID_AD_Reference_ID=163;
public I_M_Product_Category getM_Product_Category() throws Exception
{
Class<?> clazz = MTable.getClass(I_M_Product_Category.Table_Name);
I_M_Product_Category result = null;
@ -947,6 +980,7 @@ public static final int M_PRODUCT_CATEGORY_ID_AD_Reference_ID=163;
{
if (Name == null)
throw new IllegalArgumentException ("Name is mandatory.");
if (Name.length() > 60)
{
log.warning("Length > 60 - truncated");
@ -979,7 +1013,7 @@ public static final int M_PRODUCT_CATEGORY_ID_AD_Reference_ID=163;
}
/** Get Process Now.
@return Process Now */
@return Process Now */
public boolean isProcessing ()
{
Object oo = get_Value(COLUMNNAME_Processing);
@ -992,20 +1026,27 @@ public static final int M_PRODUCT_CATEGORY_ID_AD_Reference_ID=163;
return false;
}
/** ProductType AD_Reference_ID=270 */
public static final int PRODUCTTYPE_AD_Reference_ID=270;/** Expense type = E */
public static final String PRODUCTTYPE_ExpenseType = "E";/** Item = I */
public static final String PRODUCTTYPE_Item = "I";/** Online = O */
public static final String PRODUCTTYPE_Online = "O";/** Resource = R */
public static final String PRODUCTTYPE_Resource = "R";/** Service = S */
public static final String PRODUCTTYPE_Service = "S";
/** ProductType AD_Reference_ID=270 */
public static final int PRODUCTTYPE_AD_Reference_ID=270;
/** Item = I */
public static final String PRODUCTTYPE_Item = "I";
/** Service = S */
public static final String PRODUCTTYPE_Service = "S";
/** Resource = R */
public static final String PRODUCTTYPE_Resource = "R";
/** Expense type = E */
public static final String PRODUCTTYPE_ExpenseType = "E";
/** Online = O */
public static final String PRODUCTTYPE_Online = "O";
/** Set Product Type.
@param ProductType
Type of product
*/
public void setProductType (String ProductType)
{
if (ProductType == null) throw new IllegalArgumentException ("ProductType is mandatory");if (ProductType.equals("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");
ProductType = ProductType.substring(0, 0);
@ -1021,7 +1062,7 @@ if (ProductType == null) throw new IllegalArgumentException ("ProductType is man
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);
I_R_MailText result = null;
@ -1043,9 +1084,10 @@ if (ProductType == null) throw new IllegalArgumentException ("ProductType is man
*/
public void setR_MailText_ID (int R_MailText_ID)
{
if (R_MailText_ID <= 0) set_Value (COLUMNNAME_R_MailText_ID, null);
else
set_Value (COLUMNNAME_R_MailText_ID, Integer.valueOf(R_MailText_ID));
if (R_MailText_ID <= 0)
set_Value (COLUMNNAME_R_MailText_ID, null);
else
set_Value (COLUMNNAME_R_MailText_ID, Integer.valueOf(R_MailText_ID));
}
/** Get Mail Template.
@ -1065,6 +1107,7 @@ if (ProductType == null) throw new IllegalArgumentException ("ProductType is man
*/
public void setSKU (String SKU)
{
if (SKU != null && SKU.length() > 30)
{
log.warning("Length > 30 - truncated");
@ -1081,7 +1124,7 @@ if (ProductType == null) throw new IllegalArgumentException ("ProductType is man
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);
I_S_ExpenseType result = null;
@ -1103,9 +1146,10 @@ if (ProductType == null) throw new IllegalArgumentException ("ProductType is man
*/
public void setS_ExpenseType_ID (int S_ExpenseType_ID)
{
if (S_ExpenseType_ID <= 0) set_ValueNoCheck (COLUMNNAME_S_ExpenseType_ID, null);
else
set_ValueNoCheck (COLUMNNAME_S_ExpenseType_ID, Integer.valueOf(S_ExpenseType_ID));
if (S_ExpenseType_ID <= 0)
set_ValueNoCheck (COLUMNNAME_S_ExpenseType_ID, null);
else
set_ValueNoCheck (COLUMNNAME_S_ExpenseType_ID, Integer.valueOf(S_ExpenseType_ID));
}
/** Get Expense Type.
@ -1119,7 +1163,7 @@ if (ProductType == null) throw new IllegalArgumentException ("ProductType is man
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);
I_S_Resource result = null;
@ -1141,9 +1185,10 @@ if (ProductType == null) throw new IllegalArgumentException ("ProductType is man
*/
public void setS_Resource_ID (int S_Resource_ID)
{
if (S_Resource_ID <= 0) set_ValueNoCheck (COLUMNNAME_S_Resource_ID, null);
else
set_ValueNoCheck (COLUMNNAME_S_Resource_ID, Integer.valueOf(S_Resource_ID));
if (S_Resource_ID <= 0)
set_ValueNoCheck (COLUMNNAME_S_Resource_ID, null);
else
set_ValueNoCheck (COLUMNNAME_S_Resource_ID, Integer.valueOf(S_Resource_ID));
}
/** Get Resource.
@ -1157,17 +1202,18 @@ if (ProductType == null) throw new IllegalArgumentException ("ProductType is man
return ii.intValue();
}
/** SalesRep_ID AD_Reference_ID=190 */
public static final int SALESREP_ID_AD_Reference_ID=190;
/** SalesRep_ID AD_Reference_ID=190 */
public static final int SALESREP_ID_AD_Reference_ID=190;
/** Set Sales Representative.
@param SalesRep_ID
Sales Representative or Company Agent
*/
public void setSalesRep_ID (int SalesRep_ID)
{
if (SalesRep_ID <= 0) set_Value (COLUMNNAME_SalesRep_ID, null);
else
set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID));
if (SalesRep_ID <= 0)
set_Value (COLUMNNAME_SalesRep_ID, null);
else
set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID));
}
/** Get Sales Representative.
@ -1247,6 +1293,7 @@ public static final int SALESREP_ID_AD_Reference_ID=190;
*/
public void setUPC (String UPC)
{
if (UPC != null && UPC.length() > 30)
{
log.warning("Length > 30 - truncated");
@ -1291,6 +1338,7 @@ public static final int SALESREP_ID_AD_Reference_ID=190;
{
if (Value == null)
throw new IllegalArgumentException ("Value is mandatory.");
if (Value.length() > 40)
{
log.warning("Length > 40 - truncated");
@ -1313,6 +1361,7 @@ public static final int SALESREP_ID_AD_Reference_ID=190;
*/
public void setVersionNo (String VersionNo)
{
if (VersionNo != null && VersionNo.length() > 20)
{
log.warning("Length > 20 - truncated");