FR [2526794] - Refactoring to change serialVersionUID=1L with proper value
Delete unused X_ classes not regenerated because the associated tables are views or are inactive https://sourceforge.net/tracker/index.php?func=detail&aid=2526794&group_id=176962&atid=879335
This commit is contained in:
parent
3813416a14
commit
0eb3b42850
|
@ -1,58 +0,0 @@
|
||||||
/**********************************************************************
|
|
||||||
* This file is part of Adempiere ERP Bazaar *
|
|
||||||
* http://www.adempiere.org *
|
|
||||||
* *
|
|
||||||
* Copyright (C) Trifon Trifonov. *
|
|
||||||
* Copyright (C) Contributors *
|
|
||||||
* *
|
|
||||||
* This program is free software;
|
|
||||||
you can redistribute it and/or *
|
|
||||||
* modify it under the terms of the GNU General Public License *
|
|
||||||
* as published by the Free Software Foundation;
|
|
||||||
either version 2 *
|
|
||||||
* of the License, or (at your option) any later version. *
|
|
||||||
* *
|
|
||||||
* This program is distributed in the hope that it will be useful, *
|
|
||||||
* but WITHOUT ANY WARRANTY;
|
|
||||||
without even the implied warranty of *
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
||||||
* GNU General Public License for more details. *
|
|
||||||
* *
|
|
||||||
* You should have received a copy of the GNU General Public License *
|
|
||||||
* along with this program;
|
|
||||||
if not, write to the Free Software *
|
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, *
|
|
||||||
* MA 02110-1301, USA. *
|
|
||||||
* *
|
|
||||||
* Contributors: *
|
|
||||||
* - Trifon Trifonov (trifonnt@users.sourceforge.net) *
|
|
||||||
* *
|
|
||||||
* Sponsors: *
|
|
||||||
* - Company (http://www.site.com) *
|
|
||||||
**********************************************************************/
|
|
||||||
package org.compiere.model;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import org.compiere.util.KeyNamePair;
|
|
||||||
|
|
||||||
/** Generated Interface for DD_Order_Header_v
|
|
||||||
* @author Trifon Trifonov (generated)
|
|
||||||
* @version Release 3.5.1a
|
|
||||||
*/
|
|
||||||
public interface I_DD_Order_Header_v
|
|
||||||
{
|
|
||||||
|
|
||||||
/** TableName=DD_Order_Header_v */
|
|
||||||
public static final String Table_Name = "DD_Order_Header_v";
|
|
||||||
|
|
||||||
/** AD_Table_ID=53039 */
|
|
||||||
public static final int Table_ID = MTable.getTable_ID(Table_Name);
|
|
||||||
|
|
||||||
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
|
||||||
|
|
||||||
/** AccessLevel = 3 - Client - Org
|
|
||||||
*/
|
|
||||||
BigDecimal accessLevel = BigDecimal.valueOf(3);
|
|
||||||
|
|
||||||
/** Load Meta Data */
|
|
||||||
}
|
|
|
@ -1,393 +0,0 @@
|
||||||
/**********************************************************************
|
|
||||||
* This file is part of Adempiere ERP Bazaar *
|
|
||||||
* http://www.adempiere.org *
|
|
||||||
* *
|
|
||||||
* Copyright (C) Trifon Trifonov. *
|
|
||||||
* Copyright (C) Contributors *
|
|
||||||
* *
|
|
||||||
* This program is free software;
|
|
||||||
you can redistribute it and/or *
|
|
||||||
* modify it under the terms of the GNU General Public License *
|
|
||||||
* as published by the Free Software Foundation;
|
|
||||||
either version 2 *
|
|
||||||
* of the License, or (at your option) any later version. *
|
|
||||||
* *
|
|
||||||
* This program is distributed in the hope that it will be useful, *
|
|
||||||
* but WITHOUT ANY WARRANTY;
|
|
||||||
without even the implied warranty of *
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
||||||
* GNU General Public License for more details. *
|
|
||||||
* *
|
|
||||||
* You should have received a copy of the GNU General Public License *
|
|
||||||
* along with this program;
|
|
||||||
if not, write to the Free Software *
|
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, *
|
|
||||||
* MA 02110-1301, USA. *
|
|
||||||
* *
|
|
||||||
* Contributors: *
|
|
||||||
* - Trifon Trifonov (trifonnt@users.sourceforge.net) *
|
|
||||||
* *
|
|
||||||
* Sponsors: *
|
|
||||||
* - Company (http://www.site.com) *
|
|
||||||
**********************************************************************/
|
|
||||||
package org.compiere.model;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.sql.Timestamp;
|
|
||||||
import org.compiere.util.KeyNamePair;
|
|
||||||
|
|
||||||
/** Generated Interface for Fact_Acct_Balance
|
|
||||||
* @author Trifon Trifonov (generated)
|
|
||||||
* @version Release 3.5.1a
|
|
||||||
*/
|
|
||||||
public interface I_Fact_Acct_Balance
|
|
||||||
{
|
|
||||||
|
|
||||||
/** TableName=Fact_Acct_Balance */
|
|
||||||
public static final String Table_Name = "Fact_Acct_Balance";
|
|
||||||
|
|
||||||
/** AD_Table_ID=547 */
|
|
||||||
public static final int Table_ID = MTable.getTable_ID(Table_Name);
|
|
||||||
|
|
||||||
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
|
||||||
|
|
||||||
/** AccessLevel = 3 - Client - Org
|
|
||||||
*/
|
|
||||||
BigDecimal accessLevel = BigDecimal.valueOf(3);
|
|
||||||
|
|
||||||
/** Load Meta Data */
|
|
||||||
|
|
||||||
/** Column name AD_OrgTrx_ID */
|
|
||||||
public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID";
|
|
||||||
|
|
||||||
/** Set Trx Organization.
|
|
||||||
* Performing or initiating organization
|
|
||||||
*/
|
|
||||||
public void setAD_OrgTrx_ID (int AD_OrgTrx_ID);
|
|
||||||
|
|
||||||
/** Get Trx Organization.
|
|
||||||
* Performing or initiating organization
|
|
||||||
*/
|
|
||||||
public int getAD_OrgTrx_ID();
|
|
||||||
|
|
||||||
/** Column name Account_ID */
|
|
||||||
public static final String COLUMNNAME_Account_ID = "Account_ID";
|
|
||||||
|
|
||||||
/** Set Account.
|
|
||||||
* Account used
|
|
||||||
*/
|
|
||||||
public void setAccount_ID (int Account_ID);
|
|
||||||
|
|
||||||
/** Get Account.
|
|
||||||
* Account used
|
|
||||||
*/
|
|
||||||
public int getAccount_ID();
|
|
||||||
|
|
||||||
/** Column name AmtAcctCr */
|
|
||||||
public static final String COLUMNNAME_AmtAcctCr = "AmtAcctCr";
|
|
||||||
|
|
||||||
/** Set Accounted Credit.
|
|
||||||
* Accounted Credit Amount
|
|
||||||
*/
|
|
||||||
public void setAmtAcctCr (BigDecimal AmtAcctCr);
|
|
||||||
|
|
||||||
/** Get Accounted Credit.
|
|
||||||
* Accounted Credit Amount
|
|
||||||
*/
|
|
||||||
public BigDecimal getAmtAcctCr();
|
|
||||||
|
|
||||||
/** Column name AmtAcctDr */
|
|
||||||
public static final String COLUMNNAME_AmtAcctDr = "AmtAcctDr";
|
|
||||||
|
|
||||||
/** Set Accounted Debit.
|
|
||||||
* Accounted Debit Amount
|
|
||||||
*/
|
|
||||||
public void setAmtAcctDr (BigDecimal AmtAcctDr);
|
|
||||||
|
|
||||||
/** Get Accounted Debit.
|
|
||||||
* Accounted Debit Amount
|
|
||||||
*/
|
|
||||||
public BigDecimal getAmtAcctDr();
|
|
||||||
|
|
||||||
/** Column name C_AcctSchema_ID */
|
|
||||||
public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID";
|
|
||||||
|
|
||||||
/** Set Accounting Schema.
|
|
||||||
* Rules for accounting
|
|
||||||
*/
|
|
||||||
public void setC_AcctSchema_ID (int C_AcctSchema_ID);
|
|
||||||
|
|
||||||
/** Get Accounting Schema.
|
|
||||||
* Rules for accounting
|
|
||||||
*/
|
|
||||||
public int getC_AcctSchema_ID();
|
|
||||||
|
|
||||||
public I_C_AcctSchema getC_AcctSchema() throws Exception;
|
|
||||||
|
|
||||||
/** Column name C_Activity_ID */
|
|
||||||
public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID";
|
|
||||||
|
|
||||||
/** Set Activity.
|
|
||||||
* Business Activity
|
|
||||||
*/
|
|
||||||
public void setC_Activity_ID (int C_Activity_ID);
|
|
||||||
|
|
||||||
/** Get Activity.
|
|
||||||
* Business Activity
|
|
||||||
*/
|
|
||||||
public int getC_Activity_ID();
|
|
||||||
|
|
||||||
public I_C_Activity getC_Activity() throws Exception;
|
|
||||||
|
|
||||||
/** Column name C_BPartner_ID */
|
|
||||||
public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID";
|
|
||||||
|
|
||||||
/** Set Business Partner .
|
|
||||||
* Identifies a Business Partner
|
|
||||||
*/
|
|
||||||
public void setC_BPartner_ID (int C_BPartner_ID);
|
|
||||||
|
|
||||||
/** Get Business Partner .
|
|
||||||
* Identifies a Business Partner
|
|
||||||
*/
|
|
||||||
public int getC_BPartner_ID();
|
|
||||||
|
|
||||||
public I_C_BPartner getC_BPartner() throws Exception;
|
|
||||||
|
|
||||||
/** Column name C_Campaign_ID */
|
|
||||||
public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID";
|
|
||||||
|
|
||||||
/** Set Campaign.
|
|
||||||
* Marketing Campaign
|
|
||||||
*/
|
|
||||||
public void setC_Campaign_ID (int C_Campaign_ID);
|
|
||||||
|
|
||||||
/** Get Campaign.
|
|
||||||
* Marketing Campaign
|
|
||||||
*/
|
|
||||||
public int getC_Campaign_ID();
|
|
||||||
|
|
||||||
public I_C_Campaign getC_Campaign() throws Exception;
|
|
||||||
|
|
||||||
/** Column name C_LocFrom_ID */
|
|
||||||
public static final String COLUMNNAME_C_LocFrom_ID = "C_LocFrom_ID";
|
|
||||||
|
|
||||||
/** Set Location From.
|
|
||||||
* Location that inventory was moved from
|
|
||||||
*/
|
|
||||||
public void setC_LocFrom_ID (int C_LocFrom_ID);
|
|
||||||
|
|
||||||
/** Get Location From.
|
|
||||||
* Location that inventory was moved from
|
|
||||||
*/
|
|
||||||
public int getC_LocFrom_ID();
|
|
||||||
|
|
||||||
/** Column name C_LocTo_ID */
|
|
||||||
public static final String COLUMNNAME_C_LocTo_ID = "C_LocTo_ID";
|
|
||||||
|
|
||||||
/** Set Location To.
|
|
||||||
* Location that inventory was moved to
|
|
||||||
*/
|
|
||||||
public void setC_LocTo_ID (int C_LocTo_ID);
|
|
||||||
|
|
||||||
/** Get Location To.
|
|
||||||
* Location that inventory was moved to
|
|
||||||
*/
|
|
||||||
public int getC_LocTo_ID();
|
|
||||||
|
|
||||||
/** Column name C_ProjectPhase_ID */
|
|
||||||
public static final String COLUMNNAME_C_ProjectPhase_ID = "C_ProjectPhase_ID";
|
|
||||||
|
|
||||||
/** Set Project Phase.
|
|
||||||
* Phase of a Project
|
|
||||||
*/
|
|
||||||
public void setC_ProjectPhase_ID (int C_ProjectPhase_ID);
|
|
||||||
|
|
||||||
/** Get Project Phase.
|
|
||||||
* Phase of a Project
|
|
||||||
*/
|
|
||||||
public int getC_ProjectPhase_ID();
|
|
||||||
|
|
||||||
public I_C_ProjectPhase getC_ProjectPhase() throws Exception;
|
|
||||||
|
|
||||||
/** Column name C_ProjectTask_ID */
|
|
||||||
public static final String COLUMNNAME_C_ProjectTask_ID = "C_ProjectTask_ID";
|
|
||||||
|
|
||||||
/** Set Project Task.
|
|
||||||
* Actual Project Task in a Phase
|
|
||||||
*/
|
|
||||||
public void setC_ProjectTask_ID (int C_ProjectTask_ID);
|
|
||||||
|
|
||||||
/** Get Project Task.
|
|
||||||
* Actual Project Task in a Phase
|
|
||||||
*/
|
|
||||||
public int getC_ProjectTask_ID();
|
|
||||||
|
|
||||||
public I_C_ProjectTask getC_ProjectTask() throws Exception;
|
|
||||||
|
|
||||||
/** Column name C_Project_ID */
|
|
||||||
public static final String COLUMNNAME_C_Project_ID = "C_Project_ID";
|
|
||||||
|
|
||||||
/** Set Project.
|
|
||||||
* Financial Project
|
|
||||||
*/
|
|
||||||
public void setC_Project_ID (int C_Project_ID);
|
|
||||||
|
|
||||||
/** Get Project.
|
|
||||||
* Financial Project
|
|
||||||
*/
|
|
||||||
public int getC_Project_ID();
|
|
||||||
|
|
||||||
public I_C_Project getC_Project() throws Exception;
|
|
||||||
|
|
||||||
/** Column name C_SalesRegion_ID */
|
|
||||||
public static final String COLUMNNAME_C_SalesRegion_ID = "C_SalesRegion_ID";
|
|
||||||
|
|
||||||
/** Set Sales Region.
|
|
||||||
* Sales coverage region
|
|
||||||
*/
|
|
||||||
public void setC_SalesRegion_ID (int C_SalesRegion_ID);
|
|
||||||
|
|
||||||
/** Get Sales Region.
|
|
||||||
* Sales coverage region
|
|
||||||
*/
|
|
||||||
public int getC_SalesRegion_ID();
|
|
||||||
|
|
||||||
public I_C_SalesRegion getC_SalesRegion() throws Exception;
|
|
||||||
|
|
||||||
/** Column name C_SubAcct_ID */
|
|
||||||
public static final String COLUMNNAME_C_SubAcct_ID = "C_SubAcct_ID";
|
|
||||||
|
|
||||||
/** Set Sub Account.
|
|
||||||
* Sub account for Element Value
|
|
||||||
*/
|
|
||||||
public void setC_SubAcct_ID (int C_SubAcct_ID);
|
|
||||||
|
|
||||||
/** Get Sub Account.
|
|
||||||
* Sub account for Element Value
|
|
||||||
*/
|
|
||||||
public int getC_SubAcct_ID();
|
|
||||||
|
|
||||||
public I_C_SubAcct getC_SubAcct() throws Exception;
|
|
||||||
|
|
||||||
/** Column name DateAcct */
|
|
||||||
public static final String COLUMNNAME_DateAcct = "DateAcct";
|
|
||||||
|
|
||||||
/** Set Account Date.
|
|
||||||
* Accounting Date
|
|
||||||
*/
|
|
||||||
public void setDateAcct (Timestamp DateAcct);
|
|
||||||
|
|
||||||
/** Get Account Date.
|
|
||||||
* Accounting Date
|
|
||||||
*/
|
|
||||||
public Timestamp getDateAcct();
|
|
||||||
|
|
||||||
/** Column name GL_Budget_ID */
|
|
||||||
public static final String COLUMNNAME_GL_Budget_ID = "GL_Budget_ID";
|
|
||||||
|
|
||||||
/** Set Budget.
|
|
||||||
* General Ledger Budget
|
|
||||||
*/
|
|
||||||
public void setGL_Budget_ID (int GL_Budget_ID);
|
|
||||||
|
|
||||||
/** Get Budget.
|
|
||||||
* General Ledger Budget
|
|
||||||
*/
|
|
||||||
public int getGL_Budget_ID();
|
|
||||||
|
|
||||||
public I_GL_Budget getGL_Budget() throws Exception;
|
|
||||||
|
|
||||||
/** Column name M_Product_ID */
|
|
||||||
public static final String COLUMNNAME_M_Product_ID = "M_Product_ID";
|
|
||||||
|
|
||||||
/** Set Product.
|
|
||||||
* Product, Service, Item
|
|
||||||
*/
|
|
||||||
public void setM_Product_ID (int M_Product_ID);
|
|
||||||
|
|
||||||
/** Get Product.
|
|
||||||
* Product, Service, Item
|
|
||||||
*/
|
|
||||||
public int getM_Product_ID();
|
|
||||||
|
|
||||||
public I_M_Product getM_Product() throws Exception;
|
|
||||||
|
|
||||||
/** Column name PostingType */
|
|
||||||
public static final String COLUMNNAME_PostingType = "PostingType";
|
|
||||||
|
|
||||||
/** Set PostingType.
|
|
||||||
* The type of posted amount for the transaction
|
|
||||||
*/
|
|
||||||
public void setPostingType (String PostingType);
|
|
||||||
|
|
||||||
/** Get PostingType.
|
|
||||||
* The type of posted amount for the transaction
|
|
||||||
*/
|
|
||||||
public String getPostingType();
|
|
||||||
|
|
||||||
/** Column name Qty */
|
|
||||||
public static final String COLUMNNAME_Qty = "Qty";
|
|
||||||
|
|
||||||
/** Set Quantity.
|
|
||||||
* Quantity
|
|
||||||
*/
|
|
||||||
public void setQty (BigDecimal Qty);
|
|
||||||
|
|
||||||
/** Get Quantity.
|
|
||||||
* Quantity
|
|
||||||
*/
|
|
||||||
public BigDecimal getQty();
|
|
||||||
|
|
||||||
/** Column name User1_ID */
|
|
||||||
public static final String COLUMNNAME_User1_ID = "User1_ID";
|
|
||||||
|
|
||||||
/** Set User List 1.
|
|
||||||
* User defined list element #1
|
|
||||||
*/
|
|
||||||
public void setUser1_ID (int User1_ID);
|
|
||||||
|
|
||||||
/** Get User List 1.
|
|
||||||
* User defined list element #1
|
|
||||||
*/
|
|
||||||
public int getUser1_ID();
|
|
||||||
|
|
||||||
/** Column name User2_ID */
|
|
||||||
public static final String COLUMNNAME_User2_ID = "User2_ID";
|
|
||||||
|
|
||||||
/** Set User List 2.
|
|
||||||
* User defined list element #2
|
|
||||||
*/
|
|
||||||
public void setUser2_ID (int User2_ID);
|
|
||||||
|
|
||||||
/** Get User List 2.
|
|
||||||
* User defined list element #2
|
|
||||||
*/
|
|
||||||
public int getUser2_ID();
|
|
||||||
|
|
||||||
/** Column name UserElement1_ID */
|
|
||||||
public static final String COLUMNNAME_UserElement1_ID = "UserElement1_ID";
|
|
||||||
|
|
||||||
/** Set User Element 1.
|
|
||||||
* User defined accounting Element
|
|
||||||
*/
|
|
||||||
public void setUserElement1_ID (int UserElement1_ID);
|
|
||||||
|
|
||||||
/** Get User Element 1.
|
|
||||||
* User defined accounting Element
|
|
||||||
*/
|
|
||||||
public int getUserElement1_ID();
|
|
||||||
|
|
||||||
/** Column name UserElement2_ID */
|
|
||||||
public static final String COLUMNNAME_UserElement2_ID = "UserElement2_ID";
|
|
||||||
|
|
||||||
/** Set User Element 2.
|
|
||||||
* User defined accounting Element
|
|
||||||
*/
|
|
||||||
public void setUserElement2_ID (int UserElement2_ID);
|
|
||||||
|
|
||||||
/** Get User Element 2.
|
|
||||||
* User defined accounting Element
|
|
||||||
*/
|
|
||||||
public int getUserElement2_ID();
|
|
||||||
}
|
|
|
@ -1,273 +0,0 @@
|
||||||
/**********************************************************************
|
|
||||||
* This file is part of Adempiere ERP Bazaar *
|
|
||||||
* http://www.adempiere.org *
|
|
||||||
* *
|
|
||||||
* Copyright (C) Trifon Trifonov. *
|
|
||||||
* Copyright (C) Contributors *
|
|
||||||
* *
|
|
||||||
* This program is free software, you can redistribute it and/or *
|
|
||||||
* modify it under the terms of the GNU General Public License *
|
|
||||||
* as published by the Free Software Foundation, either version 2 *
|
|
||||||
* of the License, or (at your option) any later version. *
|
|
||||||
* *
|
|
||||||
* This program is distributed in the hope that it will be useful, *
|
|
||||||
* but WITHOUT ANY WARRANTY, without even the implied warranty of *
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
||||||
* GNU General Public License for more details. *
|
|
||||||
* *
|
|
||||||
* You should have received a copy of the GNU General Public License *
|
|
||||||
* along with this program, if not, write to the Free Software *
|
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, *
|
|
||||||
* MA 02110-1301, USA. *
|
|
||||||
* *
|
|
||||||
* Contributors: *
|
|
||||||
* - Trifon Trifonov (trifonnt@users.sourceforge.net) *
|
|
||||||
* *
|
|
||||||
* Sponsors: *
|
|
||||||
* - Company (http://www.site.com) *
|
|
||||||
**********************************************************************/
|
|
||||||
package org.compiere.model;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.sql.Timestamp;
|
|
||||||
import org.compiere.util.KeyNamePair;
|
|
||||||
|
|
||||||
/** Generated Interface for M_EDI
|
|
||||||
* @author Adempiere (generated)
|
|
||||||
* @version Release 3.5.2a
|
|
||||||
*/
|
|
||||||
public interface I_M_EDI
|
|
||||||
{
|
|
||||||
|
|
||||||
/** TableName=M_EDI */
|
|
||||||
public static final String Table_Name = "M_EDI";
|
|
||||||
|
|
||||||
/** AD_Table_ID=367 */
|
|
||||||
public static final int Table_ID = MTable.getTable_ID(Table_Name);
|
|
||||||
|
|
||||||
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
|
||||||
|
|
||||||
/** AccessLevel = 3 - Client - Org
|
|
||||||
*/
|
|
||||||
BigDecimal accessLevel = BigDecimal.valueOf(3);
|
|
||||||
|
|
||||||
/** Load Meta Data */
|
|
||||||
|
|
||||||
/** Column name C_BP_EDI_ID */
|
|
||||||
public static final String COLUMNNAME_C_BP_EDI_ID = "C_BP_EDI_ID";
|
|
||||||
|
|
||||||
/** Set EDI Definition.
|
|
||||||
* Electronic Data Interchange
|
|
||||||
*/
|
|
||||||
public void setC_BP_EDI_ID (int C_BP_EDI_ID);
|
|
||||||
|
|
||||||
/** Get EDI Definition.
|
|
||||||
* Electronic Data Interchange
|
|
||||||
*/
|
|
||||||
public int getC_BP_EDI_ID();
|
|
||||||
|
|
||||||
public I_C_BP_EDI getC_BP_EDI() throws Exception;
|
|
||||||
|
|
||||||
/** Column name DocumentNo */
|
|
||||||
public static final String COLUMNNAME_DocumentNo = "DocumentNo";
|
|
||||||
|
|
||||||
/** Set Document No.
|
|
||||||
* Document sequence number of the document
|
|
||||||
*/
|
|
||||||
public void setDocumentNo (String DocumentNo);
|
|
||||||
|
|
||||||
/** Get Document No.
|
|
||||||
* Document sequence number of the document
|
|
||||||
*/
|
|
||||||
public String getDocumentNo();
|
|
||||||
|
|
||||||
/** Column name EDIStatus */
|
|
||||||
public static final String COLUMNNAME_EDIStatus = "EDIStatus";
|
|
||||||
|
|
||||||
/** Set EDI Status */
|
|
||||||
public void setEDIStatus (String EDIStatus);
|
|
||||||
|
|
||||||
/** Get EDI Status */
|
|
||||||
public String getEDIStatus();
|
|
||||||
|
|
||||||
/** Column name Line */
|
|
||||||
public static final String COLUMNNAME_Line = "Line";
|
|
||||||
|
|
||||||
/** Set Line No.
|
|
||||||
* Unique line for this document
|
|
||||||
*/
|
|
||||||
public void setLine (int Line);
|
|
||||||
|
|
||||||
/** Get Line No.
|
|
||||||
* Unique line for this document
|
|
||||||
*/
|
|
||||||
public int getLine();
|
|
||||||
|
|
||||||
/** Column name M_EDI_ID */
|
|
||||||
public static final String COLUMNNAME_M_EDI_ID = "M_EDI_ID";
|
|
||||||
|
|
||||||
/** Set EDI Transaction */
|
|
||||||
public void setM_EDI_ID (int M_EDI_ID);
|
|
||||||
|
|
||||||
/** Get EDI Transaction */
|
|
||||||
public int getM_EDI_ID();
|
|
||||||
|
|
||||||
/** Column name M_Product_ID */
|
|
||||||
public static final String COLUMNNAME_M_Product_ID = "M_Product_ID";
|
|
||||||
|
|
||||||
/** Set Product.
|
|
||||||
* Product, Service, Item
|
|
||||||
*/
|
|
||||||
public void setM_Product_ID (int M_Product_ID);
|
|
||||||
|
|
||||||
/** Get Product.
|
|
||||||
* Product, Service, Item
|
|
||||||
*/
|
|
||||||
public int getM_Product_ID();
|
|
||||||
|
|
||||||
public I_M_Product getM_Product() throws Exception;
|
|
||||||
|
|
||||||
/** Column name M_Warehouse_ID */
|
|
||||||
public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID";
|
|
||||||
|
|
||||||
/** Set Warehouse.
|
|
||||||
* Storage Warehouse and Service Point
|
|
||||||
*/
|
|
||||||
public void setM_Warehouse_ID (int M_Warehouse_ID);
|
|
||||||
|
|
||||||
/** Get Warehouse.
|
|
||||||
* Storage Warehouse and Service Point
|
|
||||||
*/
|
|
||||||
public int getM_Warehouse_ID();
|
|
||||||
|
|
||||||
public I_M_Warehouse getM_Warehouse() throws Exception;
|
|
||||||
|
|
||||||
/** Column name Processed */
|
|
||||||
public static final String COLUMNNAME_Processed = "Processed";
|
|
||||||
|
|
||||||
/** Set Processed.
|
|
||||||
* The document has been processed
|
|
||||||
*/
|
|
||||||
public void setProcessed (boolean Processed);
|
|
||||||
|
|
||||||
/** Get Processed.
|
|
||||||
* The document has been processed
|
|
||||||
*/
|
|
||||||
public boolean isProcessed();
|
|
||||||
|
|
||||||
/** Column name Reply_Price */
|
|
||||||
public static final String COLUMNNAME_Reply_Price = "Reply_Price";
|
|
||||||
|
|
||||||
/** Set Reply Price.
|
|
||||||
* Confirmed Price from EDI Partner
|
|
||||||
*/
|
|
||||||
public void setReply_Price (BigDecimal Reply_Price);
|
|
||||||
|
|
||||||
/** Get Reply Price.
|
|
||||||
* Confirmed Price from EDI Partner
|
|
||||||
*/
|
|
||||||
public BigDecimal getReply_Price();
|
|
||||||
|
|
||||||
/** Column name Reply_QtyAvailable */
|
|
||||||
public static final String COLUMNNAME_Reply_QtyAvailable = "Reply_QtyAvailable";
|
|
||||||
|
|
||||||
/** Set Reply Qty Available */
|
|
||||||
public void setReply_QtyAvailable (BigDecimal Reply_QtyAvailable);
|
|
||||||
|
|
||||||
/** Get Reply Qty Available */
|
|
||||||
public BigDecimal getReply_QtyAvailable();
|
|
||||||
|
|
||||||
/** Column name Reply_QtyConfirmed */
|
|
||||||
public static final String COLUMNNAME_Reply_QtyConfirmed = "Reply_QtyConfirmed";
|
|
||||||
|
|
||||||
/** Set Reply Qty Confirmed */
|
|
||||||
public void setReply_QtyConfirmed (BigDecimal Reply_QtyConfirmed);
|
|
||||||
|
|
||||||
/** Get Reply Qty Confirmed */
|
|
||||||
public BigDecimal getReply_QtyConfirmed();
|
|
||||||
|
|
||||||
/** Column name Reply_Received */
|
|
||||||
public static final String COLUMNNAME_Reply_Received = "Reply_Received";
|
|
||||||
|
|
||||||
/** Set Reply Received */
|
|
||||||
public void setReply_Received (Timestamp Reply_Received);
|
|
||||||
|
|
||||||
/** Get Reply Received */
|
|
||||||
public Timestamp getReply_Received();
|
|
||||||
|
|
||||||
/** Column name Reply_Remarks */
|
|
||||||
public static final String COLUMNNAME_Reply_Remarks = "Reply_Remarks";
|
|
||||||
|
|
||||||
/** Set Reply Remarks */
|
|
||||||
public void setReply_Remarks (String Reply_Remarks);
|
|
||||||
|
|
||||||
/** Get Reply Remarks */
|
|
||||||
public String getReply_Remarks();
|
|
||||||
|
|
||||||
/** Column name Reply_ShipDate */
|
|
||||||
public static final String COLUMNNAME_Reply_ShipDate = "Reply_ShipDate";
|
|
||||||
|
|
||||||
/** Set Reply Ship date */
|
|
||||||
public void setReply_ShipDate (Timestamp Reply_ShipDate);
|
|
||||||
|
|
||||||
/** Get Reply Ship date */
|
|
||||||
public Timestamp getReply_ShipDate();
|
|
||||||
|
|
||||||
/** Column name Request_Price */
|
|
||||||
public static final String COLUMNNAME_Request_Price = "Request_Price";
|
|
||||||
|
|
||||||
/** Set Request Price */
|
|
||||||
public void setRequest_Price (BigDecimal Request_Price);
|
|
||||||
|
|
||||||
/** Get Request Price */
|
|
||||||
public BigDecimal getRequest_Price();
|
|
||||||
|
|
||||||
/** Column name Request_Qty */
|
|
||||||
public static final String COLUMNNAME_Request_Qty = "Request_Qty";
|
|
||||||
|
|
||||||
/** Set Request Qty */
|
|
||||||
public void setRequest_Qty (BigDecimal Request_Qty);
|
|
||||||
|
|
||||||
/** Get Request Qty */
|
|
||||||
public BigDecimal getRequest_Qty();
|
|
||||||
|
|
||||||
/** Column name Request_Shipdate */
|
|
||||||
public static final String COLUMNNAME_Request_Shipdate = "Request_Shipdate";
|
|
||||||
|
|
||||||
/** Set Request Ship date */
|
|
||||||
public void setRequest_Shipdate (Timestamp Request_Shipdate);
|
|
||||||
|
|
||||||
/** Get Request Ship date */
|
|
||||||
public Timestamp getRequest_Shipdate();
|
|
||||||
|
|
||||||
/** Column name TrxReceived */
|
|
||||||
public static final String COLUMNNAME_TrxReceived = "TrxReceived";
|
|
||||||
|
|
||||||
/** Set Transaction received */
|
|
||||||
public void setTrxReceived (Timestamp TrxReceived);
|
|
||||||
|
|
||||||
/** Get Transaction received */
|
|
||||||
public Timestamp getTrxReceived();
|
|
||||||
|
|
||||||
/** Column name TrxSent */
|
|
||||||
public static final String COLUMNNAME_TrxSent = "TrxSent";
|
|
||||||
|
|
||||||
/** Set Transaction sent */
|
|
||||||
public void setTrxSent (Timestamp TrxSent);
|
|
||||||
|
|
||||||
/** Get Transaction sent */
|
|
||||||
public Timestamp getTrxSent();
|
|
||||||
|
|
||||||
/** Column name TrxType */
|
|
||||||
public static final String COLUMNNAME_TrxType = "TrxType";
|
|
||||||
|
|
||||||
/** Set Transaction Type.
|
|
||||||
* Type of credit card transaction
|
|
||||||
*/
|
|
||||||
public void setTrxType (String TrxType);
|
|
||||||
|
|
||||||
/** Get Transaction Type.
|
|
||||||
* Type of credit card transaction
|
|
||||||
*/
|
|
||||||
public String getTrxType();
|
|
||||||
}
|
|
|
@ -1,87 +0,0 @@
|
||||||
/**********************************************************************
|
|
||||||
* This file is part of Adempiere ERP Bazaar *
|
|
||||||
* http://www.adempiere.org *
|
|
||||||
* *
|
|
||||||
* Copyright (C) Trifon Trifonov. *
|
|
||||||
* Copyright (C) Contributors *
|
|
||||||
* *
|
|
||||||
* This program is free software, you can redistribute it and/or *
|
|
||||||
* modify it under the terms of the GNU General Public License *
|
|
||||||
* as published by the Free Software Foundation, either version 2 *
|
|
||||||
* of the License, or (at your option) any later version. *
|
|
||||||
* *
|
|
||||||
* This program is distributed in the hope that it will be useful, *
|
|
||||||
* but WITHOUT ANY WARRANTY, without even the implied warranty of *
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
||||||
* GNU General Public License for more details. *
|
|
||||||
* *
|
|
||||||
* You should have received a copy of the GNU General Public License *
|
|
||||||
* along with this program, if not, write to the Free Software *
|
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, *
|
|
||||||
* MA 02110-1301, USA. *
|
|
||||||
* *
|
|
||||||
* Contributors: *
|
|
||||||
* - Trifon Trifonov (trifonnt@users.sourceforge.net) *
|
|
||||||
* *
|
|
||||||
* Sponsors: *
|
|
||||||
* - Company (http://www.site.com) *
|
|
||||||
**********************************************************************/
|
|
||||||
package org.compiere.model;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import org.compiere.util.KeyNamePair;
|
|
||||||
|
|
||||||
/** Generated Interface for M_EDI_Info
|
|
||||||
* @author Adempiere (generated)
|
|
||||||
* @version Release 3.5.2a
|
|
||||||
*/
|
|
||||||
public interface I_M_EDI_Info
|
|
||||||
{
|
|
||||||
|
|
||||||
/** TableName=M_EDI_Info */
|
|
||||||
public static final String Table_Name = "M_EDI_Info";
|
|
||||||
|
|
||||||
/** AD_Table_ID=368 */
|
|
||||||
public static final int Table_ID = MTable.getTable_ID(Table_Name);
|
|
||||||
|
|
||||||
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
|
||||||
|
|
||||||
/** AccessLevel = 3 - Client - Org
|
|
||||||
*/
|
|
||||||
BigDecimal accessLevel = BigDecimal.valueOf(3);
|
|
||||||
|
|
||||||
/** Load Meta Data */
|
|
||||||
|
|
||||||
/** Column name Info */
|
|
||||||
public static final String COLUMNNAME_Info = "Info";
|
|
||||||
|
|
||||||
/** Set Info.
|
|
||||||
* Information
|
|
||||||
*/
|
|
||||||
public void setInfo (String Info);
|
|
||||||
|
|
||||||
/** Get Info.
|
|
||||||
* Information
|
|
||||||
*/
|
|
||||||
public String getInfo();
|
|
||||||
|
|
||||||
/** Column name M_EDI_ID */
|
|
||||||
public static final String COLUMNNAME_M_EDI_ID = "M_EDI_ID";
|
|
||||||
|
|
||||||
/** Set EDI Transaction */
|
|
||||||
public void setM_EDI_ID (int M_EDI_ID);
|
|
||||||
|
|
||||||
/** Get EDI Transaction */
|
|
||||||
public int getM_EDI_ID();
|
|
||||||
|
|
||||||
public I_M_EDI getM_EDI() throws Exception;
|
|
||||||
|
|
||||||
/** Column name M_EDI_Info_ID */
|
|
||||||
public static final String COLUMNNAME_M_EDI_Info_ID = "M_EDI_Info_ID";
|
|
||||||
|
|
||||||
/** Set EDI Log */
|
|
||||||
public void setM_EDI_Info_ID (int M_EDI_Info_ID);
|
|
||||||
|
|
||||||
/** Get EDI Log */
|
|
||||||
public int getM_EDI_Info_ID();
|
|
||||||
}
|
|
|
@ -1,133 +0,0 @@
|
||||||
/******************************************************************************
|
|
||||||
* Product: Compiere ERP & CRM Smart Business Solution *
|
|
||||||
* Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. *
|
|
||||||
* This program is free software; you can redistribute it and/or modify it *
|
|
||||||
* under the terms version 2 of the GNU General Public License as published *
|
|
||||||
* by the Free Software Foundation. This program is distributed in the hope *
|
|
||||||
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
|
||||||
* See the GNU General Public License for more details. *
|
|
||||||
* You should have received a copy of the GNU General Public License along *
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc., *
|
|
||||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
|
||||||
* For the text or an alternative of this public license, you may reach us *
|
|
||||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
|
||||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
|
||||||
*****************************************************************************/
|
|
||||||
package org.compiere.model;
|
|
||||||
import java.util.*;
|
|
||||||
import java.sql.*;
|
|
||||||
import java.math.*;
|
|
||||||
import org.compiere.util.*;
|
|
||||||
/** Generated Model for CM_Container_Index
|
|
||||||
* @author Jorg Janke (generated)
|
|
||||||
* @version Release 2.5.3d - 2006-06-17 17:51:37.297 */
|
|
||||||
public class X_CM_Container_Index extends PO
|
|
||||||
{
|
|
||||||
/** Standard Constructor
|
|
||||||
@param ctx context
|
|
||||||
@param CM_Container_Index_ID id
|
|
||||||
@param trxName transaction
|
|
||||||
*/
|
|
||||||
public X_CM_Container_Index (Properties ctx, int CM_Container_Index_ID, String trxName)
|
|
||||||
{
|
|
||||||
super (ctx, CM_Container_Index_ID, trxName);
|
|
||||||
/** if (CM_Container_Index_ID == 0)
|
|
||||||
{
|
|
||||||
setCM_CONTAINER_INDEX_ID (0);
|
|
||||||
setCM_Container_Element_ID (0);
|
|
||||||
setKeyword (null);
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
/** Load Constructor
|
|
||||||
@param ctx context
|
|
||||||
@param rs result set
|
|
||||||
@param trxName transaction
|
|
||||||
*/
|
|
||||||
public X_CM_Container_Index (Properties ctx, ResultSet rs, String trxName)
|
|
||||||
{
|
|
||||||
super (ctx, rs, trxName);
|
|
||||||
}
|
|
||||||
/** AD_Table_ID=862 */
|
|
||||||
public static final int Table_ID=862;
|
|
||||||
|
|
||||||
/** TableName=CM_Container_Index */
|
|
||||||
public static final String Table_Name="CM_Container_Index";
|
|
||||||
|
|
||||||
protected static KeyNamePair Model = new KeyNamePair(862,"CM_Container_Index");
|
|
||||||
|
|
||||||
protected BigDecimal accessLevel = new BigDecimal(6);
|
|
||||||
/** AccessLevel
|
|
||||||
@return 6 - System - Client
|
|
||||||
*/
|
|
||||||
protected int get_AccessLevel()
|
|
||||||
{
|
|
||||||
return accessLevel.intValue();
|
|
||||||
}
|
|
||||||
/** Load Meta Data
|
|
||||||
@param ctx context
|
|
||||||
@return PO Info
|
|
||||||
*/
|
|
||||||
protected POInfo initPO (Properties ctx)
|
|
||||||
{
|
|
||||||
POInfo poi = POInfo.getPOInfo (ctx, Table_ID);
|
|
||||||
return poi;
|
|
||||||
}
|
|
||||||
/** Info
|
|
||||||
@return info
|
|
||||||
*/
|
|
||||||
public String toString()
|
|
||||||
{
|
|
||||||
StringBuffer sb = new StringBuffer ("X_CM_Container_Index[").append(get_ID()).append("]");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
/** Set Container Keyword Index.
|
|
||||||
@param CM_CONTAINER_INDEX_ID Container keyword index contains the content in keywords */
|
|
||||||
public void setCM_CONTAINER_INDEX_ID (int CM_CONTAINER_INDEX_ID)
|
|
||||||
{
|
|
||||||
if (CM_CONTAINER_INDEX_ID < 1) throw new IllegalArgumentException ("CM_CONTAINER_INDEX_ID is mandatory.");
|
|
||||||
set_ValueNoCheck ("CM_CONTAINER_INDEX_ID", new Integer(CM_CONTAINER_INDEX_ID));
|
|
||||||
}
|
|
||||||
/** Get Container Keyword Index.
|
|
||||||
@return Container keyword index contains the content in keywords */
|
|
||||||
public int getCM_CONTAINER_INDEX_ID()
|
|
||||||
{
|
|
||||||
Integer ii = (Integer)get_Value("CM_CONTAINER_INDEX_ID");
|
|
||||||
if (ii == null) return 0;
|
|
||||||
return ii.intValue();
|
|
||||||
}
|
|
||||||
/** Set Container Element.
|
|
||||||
@param CM_Container_Element_ID Container element i.e. Headline, Content, Footer etc. */
|
|
||||||
public void setCM_Container_Element_ID (int CM_Container_Element_ID)
|
|
||||||
{
|
|
||||||
if (CM_Container_Element_ID < 1) throw new IllegalArgumentException ("CM_Container_Element_ID is mandatory.");
|
|
||||||
set_Value ("CM_Container_Element_ID", new Integer(CM_Container_Element_ID));
|
|
||||||
}
|
|
||||||
/** Get Container Element.
|
|
||||||
@return Container element i.e. Headline, Content, Footer etc. */
|
|
||||||
public int getCM_Container_Element_ID()
|
|
||||||
{
|
|
||||||
Integer ii = (Integer)get_Value("CM_Container_Element_ID");
|
|
||||||
if (ii == null) return 0;
|
|
||||||
return ii.intValue();
|
|
||||||
}
|
|
||||||
/** Set Keyword.
|
|
||||||
@param Keyword Case insensitive keyword */
|
|
||||||
public void setKeyword (String Keyword)
|
|
||||||
{
|
|
||||||
if (Keyword == null) throw new IllegalArgumentException ("Keyword is mandatory.");
|
|
||||||
if (Keyword.length() > 255)
|
|
||||||
{
|
|
||||||
log.warning("Length > 255 - truncated");
|
|
||||||
Keyword = Keyword.substring(0,254);
|
|
||||||
}
|
|
||||||
set_Value ("Keyword", Keyword);
|
|
||||||
}
|
|
||||||
/** Get Keyword.
|
|
||||||
@return Case insensitive keyword */
|
|
||||||
public String getKeyword()
|
|
||||||
{
|
|
||||||
return (String)get_Value("Keyword");
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,244 +0,0 @@
|
||||||
/******************************************************************************
|
|
||||||
* Product: Compiere ERP & CRM Smart Business Solution *
|
|
||||||
* Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. *
|
|
||||||
* This program is free software; you can redistribute it and/or modify it *
|
|
||||||
* under the terms version 2 of the GNU General Public License as published *
|
|
||||||
* by the Free Software Foundation. This program is distributed in the hope *
|
|
||||||
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
|
||||||
* See the GNU General Public License for more details. *
|
|
||||||
* You should have received a copy of the GNU General Public License along *
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc., *
|
|
||||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
|
||||||
* For the text or an alternative of this public license, you may reach us *
|
|
||||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
|
||||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
|
||||||
*****************************************************************************/
|
|
||||||
package org.compiere.model;
|
|
||||||
import java.util.*;
|
|
||||||
import java.sql.*;
|
|
||||||
import java.math.*;
|
|
||||||
import org.compiere.util.*;
|
|
||||||
/** Generated Model for CM_Container_ToDo
|
|
||||||
* @author Jorg Janke (generated)
|
|
||||||
* @version Release 2.5.3d - 2006-06-17 17:51:37.297 */
|
|
||||||
public class X_CM_Container_ToDo extends PO
|
|
||||||
{
|
|
||||||
/** Standard Constructor
|
|
||||||
@param ctx context
|
|
||||||
@param CM_Container_ToDo_ID id
|
|
||||||
@param trxName transaction
|
|
||||||
*/
|
|
||||||
public X_CM_Container_ToDo (Properties ctx, int CM_Container_ToDo_ID, String trxName)
|
|
||||||
{
|
|
||||||
super (ctx, CM_Container_ToDo_ID, trxName);
|
|
||||||
/** if (CM_Container_ToDo_ID == 0)
|
|
||||||
{
|
|
||||||
setAD_User_ID (0);
|
|
||||||
setCM_Container_ID (0);
|
|
||||||
setCM_Container_ToDo_ID (0);
|
|
||||||
setName (null);
|
|
||||||
setValue (null);
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
/** Load Constructor
|
|
||||||
@param ctx context
|
|
||||||
@param rs result set
|
|
||||||
@param trxName transaction
|
|
||||||
*/
|
|
||||||
public X_CM_Container_ToDo (Properties ctx, ResultSet rs, String trxName)
|
|
||||||
{
|
|
||||||
super (ctx, rs, trxName);
|
|
||||||
}
|
|
||||||
/** AD_Table_ID=863 */
|
|
||||||
public static final int Table_ID=863;
|
|
||||||
|
|
||||||
/** TableName=CM_Container_ToDo */
|
|
||||||
public static final String Table_Name="CM_Container_ToDo";
|
|
||||||
|
|
||||||
protected static KeyNamePair Model = new KeyNamePair(863,"CM_Container_ToDo");
|
|
||||||
|
|
||||||
protected BigDecimal accessLevel = new BigDecimal(6);
|
|
||||||
/** AccessLevel
|
|
||||||
@return 6 - System - Client
|
|
||||||
*/
|
|
||||||
protected int get_AccessLevel()
|
|
||||||
{
|
|
||||||
return accessLevel.intValue();
|
|
||||||
}
|
|
||||||
/** Load Meta Data
|
|
||||||
@param ctx context
|
|
||||||
@return PO Info
|
|
||||||
*/
|
|
||||||
protected POInfo initPO (Properties ctx)
|
|
||||||
{
|
|
||||||
POInfo poi = POInfo.getPOInfo (ctx, Table_ID);
|
|
||||||
return poi;
|
|
||||||
}
|
|
||||||
/** Info
|
|
||||||
@return info
|
|
||||||
*/
|
|
||||||
public String toString()
|
|
||||||
{
|
|
||||||
StringBuffer sb = new StringBuffer ("X_CM_Container_ToDo[").append(get_ID()).append("]");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
/** Set User/Contact.
|
|
||||||
@param AD_User_ID User within the system - Internal or Business Partner Contact */
|
|
||||||
public void setAD_User_ID (int AD_User_ID)
|
|
||||||
{
|
|
||||||
if (AD_User_ID < 1) throw new IllegalArgumentException ("AD_User_ID is mandatory.");
|
|
||||||
set_Value ("AD_User_ID", new Integer(AD_User_ID));
|
|
||||||
}
|
|
||||||
/** Get User/Contact.
|
|
||||||
@return User within the system - Internal or Business Partner Contact */
|
|
||||||
public int getAD_User_ID()
|
|
||||||
{
|
|
||||||
Integer ii = (Integer)get_Value("AD_User_ID");
|
|
||||||
if (ii == null) return 0;
|
|
||||||
return ii.intValue();
|
|
||||||
}
|
|
||||||
/** Set Web Container.
|
|
||||||
@param CM_Container_ID Web Container contains content like images, text etc. */
|
|
||||||
public void setCM_Container_ID (int CM_Container_ID)
|
|
||||||
{
|
|
||||||
if (CM_Container_ID < 1) throw new IllegalArgumentException ("CM_Container_ID is mandatory.");
|
|
||||||
set_Value ("CM_Container_ID", new Integer(CM_Container_ID));
|
|
||||||
}
|
|
||||||
/** Get Web Container.
|
|
||||||
@return Web Container contains content like images, text etc. */
|
|
||||||
public int getCM_Container_ID()
|
|
||||||
{
|
|
||||||
Integer ii = (Integer)get_Value("CM_Container_ID");
|
|
||||||
if (ii == null) return 0;
|
|
||||||
return ii.intValue();
|
|
||||||
}
|
|
||||||
/** Set Container ToDo.
|
|
||||||
@param CM_Container_ToDo_ID Contains internal workflow strcuture */
|
|
||||||
public void setCM_Container_ToDo_ID (int CM_Container_ToDo_ID)
|
|
||||||
{
|
|
||||||
if (CM_Container_ToDo_ID < 1) throw new IllegalArgumentException ("CM_Container_ToDo_ID is mandatory.");
|
|
||||||
set_ValueNoCheck ("CM_Container_ToDo_ID", new Integer(CM_Container_ToDo_ID));
|
|
||||||
}
|
|
||||||
/** Get Container ToDo.
|
|
||||||
@return Contains internal workflow strcuture */
|
|
||||||
public int getCM_Container_ToDo_ID()
|
|
||||||
{
|
|
||||||
Integer ii = (Integer)get_Value("CM_Container_ToDo_ID");
|
|
||||||
if (ii == null) return 0;
|
|
||||||
return ii.intValue();
|
|
||||||
}
|
|
||||||
/** Set Description.
|
|
||||||
@param Description Optional short description of the record */
|
|
||||||
public void setDescription (String Description)
|
|
||||||
{
|
|
||||||
if (Description != null && Description.length() > 255)
|
|
||||||
{
|
|
||||||
log.warning("Length > 255 - truncated");
|
|
||||||
Description = Description.substring(0,254);
|
|
||||||
}
|
|
||||||
set_Value ("Description", Description);
|
|
||||||
}
|
|
||||||
/** Get Description.
|
|
||||||
@return Optional short description of the record */
|
|
||||||
public String getDescription()
|
|
||||||
{
|
|
||||||
return (String)get_Value("Description");
|
|
||||||
}
|
|
||||||
/** Set Comment/Help.
|
|
||||||
@param Help Comment or Hint */
|
|
||||||
public void setHelp (String Help)
|
|
||||||
{
|
|
||||||
if (Help != null && Help.length() > 2000)
|
|
||||||
{
|
|
||||||
log.warning("Length > 2000 - truncated");
|
|
||||||
Help = Help.substring(0,1999);
|
|
||||||
}
|
|
||||||
set_Value ("Help", Help);
|
|
||||||
}
|
|
||||||
/** Get Comment/Help.
|
|
||||||
@return Comment or Hint */
|
|
||||||
public String getHelp()
|
|
||||||
{
|
|
||||||
return (String)get_Value("Help");
|
|
||||||
}
|
|
||||||
/** Set HistoryInfo.
|
|
||||||
@param HistoryInfo Info on the history */
|
|
||||||
public void setHistoryInfo (String HistoryInfo)
|
|
||||||
{
|
|
||||||
if (HistoryInfo != null && HistoryInfo.length() > 2000)
|
|
||||||
{
|
|
||||||
log.warning("Length > 2000 - truncated");
|
|
||||||
HistoryInfo = HistoryInfo.substring(0,1999);
|
|
||||||
}
|
|
||||||
set_Value ("HistoryInfo", HistoryInfo);
|
|
||||||
}
|
|
||||||
/** Get HistoryInfo.
|
|
||||||
@return Info on the history */
|
|
||||||
public String getHistoryInfo()
|
|
||||||
{
|
|
||||||
return (String)get_Value("HistoryInfo");
|
|
||||||
}
|
|
||||||
/** Set Name.
|
|
||||||
@param Name Alphanumeric identifier of the entity */
|
|
||||||
public void setName (String Name)
|
|
||||||
{
|
|
||||||
if (Name == null) throw new IllegalArgumentException ("Name is mandatory.");
|
|
||||||
if (Name.length() > 120)
|
|
||||||
{
|
|
||||||
log.warning("Length > 120 - truncated");
|
|
||||||
Name = Name.substring(0,119);
|
|
||||||
}
|
|
||||||
set_Value ("Name", Name);
|
|
||||||
}
|
|
||||||
/** Get Name.
|
|
||||||
@return Alphanumeric identifier of the entity */
|
|
||||||
public String getName()
|
|
||||||
{
|
|
||||||
return (String)get_Value("Name");
|
|
||||||
}
|
|
||||||
/** Get Record ID/ColumnName
|
|
||||||
@return ID/ColumnName pair
|
|
||||||
*/public KeyNamePair getKeyNamePair()
|
|
||||||
{
|
|
||||||
return new KeyNamePair(get_ID(), getName());
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Next_User_ID AD_Reference_ID=110 */
|
|
||||||
public static final int NEXT_USER_ID_AD_Reference_ID=110;
|
|
||||||
/** Set Next User.
|
|
||||||
@param Next_User_ID Info who should handle this case next */
|
|
||||||
public void setNext_User_ID (int Next_User_ID)
|
|
||||||
{
|
|
||||||
if (Next_User_ID <= 0) set_Value ("Next_User_ID", null);
|
|
||||||
else
|
|
||||||
set_Value ("Next_User_ID", new Integer(Next_User_ID));
|
|
||||||
}
|
|
||||||
/** Get Next User.
|
|
||||||
@return Info who should handle this case next */
|
|
||||||
public int getNext_User_ID()
|
|
||||||
{
|
|
||||||
Integer ii = (Integer)get_Value("Next_User_ID");
|
|
||||||
if (ii == null) return 0;
|
|
||||||
return ii.intValue();
|
|
||||||
}
|
|
||||||
/** Set Search Key.
|
|
||||||
@param Value Search key for the record in the format required - must be unique */
|
|
||||||
public void setValue (String Value)
|
|
||||||
{
|
|
||||||
if (Value == null) throw new IllegalArgumentException ("Value is mandatory.");
|
|
||||||
if (Value.length() > 40)
|
|
||||||
{
|
|
||||||
log.warning("Length > 40 - truncated");
|
|
||||||
Value = Value.substring(0,39);
|
|
||||||
}
|
|
||||||
set_Value ("Value", Value);
|
|
||||||
}
|
|
||||||
/** Get Search Key.
|
|
||||||
@return Search key for the record in the format required - must be unique */
|
|
||||||
public String getValue()
|
|
||||||
{
|
|
||||||
return (String)get_Value("Value");
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,64 +0,0 @@
|
||||||
/******************************************************************************
|
|
||||||
* Product: Adempiere ERP & CRM Smart Business Solution *
|
|
||||||
* Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. *
|
|
||||||
* This program is free software; you can redistribute it and/or modify it *
|
|
||||||
* under the terms version 2 of the GNU General Public License as published *
|
|
||||||
* by the Free Software Foundation. This program is distributed in the hope *
|
|
||||||
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
|
||||||
* See the GNU General Public License for more details. *
|
|
||||||
* You should have received a copy of the GNU General Public License along *
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc., *
|
|
||||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
|
||||||
* For the text or an alternative of this public license, you may reach us *
|
|
||||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
|
||||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
|
||||||
*****************************************************************************/
|
|
||||||
/** Generated Model - DO NOT CHANGE */
|
|
||||||
package org.compiere.model;
|
|
||||||
|
|
||||||
import java.sql.ResultSet;
|
|
||||||
import java.util.Properties;
|
|
||||||
|
|
||||||
/** Generated Model for DD_Order_Header_v
|
|
||||||
* @author Adempiere (generated)
|
|
||||||
* @version Release 3.5.1a - $Id$ */
|
|
||||||
public class X_DD_Order_Header_v extends PO implements I_DD_Order_Header_v, I_Persistent
|
|
||||||
{
|
|
||||||
/** Standard Constructor */
|
|
||||||
public X_DD_Order_Header_v (Properties ctx, int DD_Order_Header_v_ID, String trxName)
|
|
||||||
{
|
|
||||||
super (ctx, DD_Order_Header_v_ID, trxName);
|
|
||||||
/** if (DD_Order_Header_v_ID == 0)
|
|
||||||
{
|
|
||||||
} */
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Load Constructor */
|
|
||||||
public X_DD_Order_Header_v (Properties ctx, ResultSet rs, String trxName)
|
|
||||||
{
|
|
||||||
super (ctx, rs, trxName);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** AccessLevel
|
|
||||||
* @return 3 - Client - Org
|
|
||||||
*/
|
|
||||||
protected int get_AccessLevel()
|
|
||||||
{
|
|
||||||
return accessLevel.intValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Load Meta Data */
|
|
||||||
protected POInfo initPO (Properties ctx)
|
|
||||||
{
|
|
||||||
POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
|
|
||||||
return poi;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String toString()
|
|
||||||
{
|
|
||||||
StringBuffer sb = new StringBuffer ("X_DD_Order_Header_v[")
|
|
||||||
.append(get_ID()).append("]");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,829 +0,0 @@
|
||||||
/******************************************************************************
|
|
||||||
* Product: Adempiere ERP & CRM Smart Business Solution *
|
|
||||||
* Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. *
|
|
||||||
* This program is free software; you can redistribute it and/or modify it *
|
|
||||||
* under the terms version 2 of the GNU General Public License as published *
|
|
||||||
* by the Free Software Foundation. This program is distributed in the hope *
|
|
||||||
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
|
||||||
* See the GNU General Public License for more details. *
|
|
||||||
* You should have received a copy of the GNU General Public License along *
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc., *
|
|
||||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
|
||||||
* For the text or an alternative of this public license, you may reach us *
|
|
||||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
|
||||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
|
||||||
*****************************************************************************/
|
|
||||||
/** Generated Model - DO NOT CHANGE */
|
|
||||||
package org.compiere.model;
|
|
||||||
|
|
||||||
import java.lang.reflect.Constructor;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.sql.ResultSet;
|
|
||||||
import java.sql.Timestamp;
|
|
||||||
import java.util.Properties;
|
|
||||||
import java.util.logging.Level;
|
|
||||||
import org.compiere.util.Env;
|
|
||||||
import org.compiere.util.KeyNamePair;
|
|
||||||
|
|
||||||
/** Generated Model for Fact_Acct_Balance
|
|
||||||
* @author Adempiere (generated)
|
|
||||||
* @version Release 3.5.1a - $Id$ */
|
|
||||||
public class X_Fact_Acct_Balance extends PO implements I_Fact_Acct_Balance, I_Persistent
|
|
||||||
{
|
|
||||||
/** Standard Constructor */
|
|
||||||
public X_Fact_Acct_Balance (Properties ctx, int Fact_Acct_Balance_ID, String trxName)
|
|
||||||
{
|
|
||||||
super (ctx, Fact_Acct_Balance_ID, trxName);
|
|
||||||
/** if (Fact_Acct_Balance_ID == 0)
|
|
||||||
{
|
|
||||||
setAccount_ID (0);
|
|
||||||
setAmtAcctCr (Env.ZERO);
|
|
||||||
setAmtAcctDr (Env.ZERO);
|
|
||||||
setC_AcctSchema_ID (0);
|
|
||||||
setDateAcct (new Timestamp(System.currentTimeMillis()));
|
|
||||||
setPostingType (null);
|
|
||||||
setQty (Env.ZERO);
|
|
||||||
} */
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Load Constructor */
|
|
||||||
public X_Fact_Acct_Balance (Properties ctx, ResultSet rs, String trxName)
|
|
||||||
{
|
|
||||||
super (ctx, rs, trxName);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** AccessLevel
|
|
||||||
* @return 3 - Client - Org
|
|
||||||
*/
|
|
||||||
protected int get_AccessLevel()
|
|
||||||
{
|
|
||||||
return accessLevel.intValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Load Meta Data */
|
|
||||||
protected POInfo initPO (Properties ctx)
|
|
||||||
{
|
|
||||||
POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
|
|
||||||
return poi;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String toString()
|
|
||||||
{
|
|
||||||
StringBuffer sb = new StringBuffer ("X_Fact_Acct_Balance[")
|
|
||||||
.append(get_ID()).append("]");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/** AD_OrgTrx_ID AD_Reference_ID=276 */
|
|
||||||
public static final int AD_ORGTRX_ID_AD_Reference_ID=276;
|
|
||||||
/** Set Trx Organization.
|
|
||||||
@param AD_OrgTrx_ID
|
|
||||||
Performing or initiating organization
|
|
||||||
*/
|
|
||||||
public void setAD_OrgTrx_ID (int AD_OrgTrx_ID)
|
|
||||||
{
|
|
||||||
if (AD_OrgTrx_ID < 1)
|
|
||||||
set_Value (COLUMNNAME_AD_OrgTrx_ID, null);
|
|
||||||
else
|
|
||||||
set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Trx Organization.
|
|
||||||
@return Performing or initiating organization
|
|
||||||
*/
|
|
||||||
public int getAD_OrgTrx_ID ()
|
|
||||||
{
|
|
||||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID);
|
|
||||||
if (ii == null)
|
|
||||||
return 0;
|
|
||||||
return ii.intValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Account_ID AD_Reference_ID=182 */
|
|
||||||
public static final int ACCOUNT_ID_AD_Reference_ID=182;
|
|
||||||
/** Set Account.
|
|
||||||
@param Account_ID
|
|
||||||
Account used
|
|
||||||
*/
|
|
||||||
public void setAccount_ID (int Account_ID)
|
|
||||||
{
|
|
||||||
if (Account_ID < 1)
|
|
||||||
throw new IllegalArgumentException ("Account_ID is mandatory.");
|
|
||||||
set_Value (COLUMNNAME_Account_ID, Integer.valueOf(Account_ID));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Account.
|
|
||||||
@return Account used
|
|
||||||
*/
|
|
||||||
public int getAccount_ID ()
|
|
||||||
{
|
|
||||||
Integer ii = (Integer)get_Value(COLUMNNAME_Account_ID);
|
|
||||||
if (ii == null)
|
|
||||||
return 0;
|
|
||||||
return ii.intValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Accounted Credit.
|
|
||||||
@param AmtAcctCr
|
|
||||||
Accounted Credit Amount
|
|
||||||
*/
|
|
||||||
public void setAmtAcctCr (BigDecimal AmtAcctCr)
|
|
||||||
{
|
|
||||||
if (AmtAcctCr == null)
|
|
||||||
throw new IllegalArgumentException ("AmtAcctCr is mandatory.");
|
|
||||||
set_Value (COLUMNNAME_AmtAcctCr, AmtAcctCr);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Accounted Credit.
|
|
||||||
@return Accounted Credit Amount
|
|
||||||
*/
|
|
||||||
public BigDecimal getAmtAcctCr ()
|
|
||||||
{
|
|
||||||
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtAcctCr);
|
|
||||||
if (bd == null)
|
|
||||||
return Env.ZERO;
|
|
||||||
return bd;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Accounted Debit.
|
|
||||||
@param AmtAcctDr
|
|
||||||
Accounted Debit Amount
|
|
||||||
*/
|
|
||||||
public void setAmtAcctDr (BigDecimal AmtAcctDr)
|
|
||||||
{
|
|
||||||
if (AmtAcctDr == null)
|
|
||||||
throw new IllegalArgumentException ("AmtAcctDr is mandatory.");
|
|
||||||
set_Value (COLUMNNAME_AmtAcctDr, AmtAcctDr);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Accounted Debit.
|
|
||||||
@return Accounted Debit Amount
|
|
||||||
*/
|
|
||||||
public BigDecimal getAmtAcctDr ()
|
|
||||||
{
|
|
||||||
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtAcctDr);
|
|
||||||
if (bd == null)
|
|
||||||
return Env.ZERO;
|
|
||||||
return bd;
|
|
||||||
}
|
|
||||||
|
|
||||||
public I_C_AcctSchema getC_AcctSchema() throws Exception
|
|
||||||
{
|
|
||||||
Class<?> clazz = MTable.getClass(I_C_AcctSchema.Table_Name);
|
|
||||||
I_C_AcctSchema result = null;
|
|
||||||
try {
|
|
||||||
Constructor<?> constructor = null;
|
|
||||||
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
|
||||||
result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()});
|
|
||||||
} catch (Exception e) {
|
|
||||||
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
|
|
||||||
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
|
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Accounting Schema.
|
|
||||||
@param C_AcctSchema_ID
|
|
||||||
Rules for accounting
|
|
||||||
*/
|
|
||||||
public void setC_AcctSchema_ID (int C_AcctSchema_ID)
|
|
||||||
{
|
|
||||||
if (C_AcctSchema_ID < 1)
|
|
||||||
throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory.");
|
|
||||||
set_Value (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Accounting Schema.
|
|
||||||
@return Rules for accounting
|
|
||||||
*/
|
|
||||||
public int getC_AcctSchema_ID ()
|
|
||||||
{
|
|
||||||
Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID);
|
|
||||||
if (ii == null)
|
|
||||||
return 0;
|
|
||||||
return ii.intValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Record ID/ColumnName
|
|
||||||
@return ID/ColumnName pair
|
|
||||||
*/
|
|
||||||
public KeyNamePair getKeyNamePair()
|
|
||||||
{
|
|
||||||
return new KeyNamePair(get_ID(), String.valueOf(getC_AcctSchema_ID()));
|
|
||||||
}
|
|
||||||
|
|
||||||
public I_C_Activity getC_Activity() throws Exception
|
|
||||||
{
|
|
||||||
Class<?> clazz = MTable.getClass(I_C_Activity.Table_Name);
|
|
||||||
I_C_Activity result = null;
|
|
||||||
try {
|
|
||||||
Constructor<?> constructor = null;
|
|
||||||
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
|
||||||
result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()});
|
|
||||||
} catch (Exception e) {
|
|
||||||
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
|
|
||||||
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
|
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Activity.
|
|
||||||
@param C_Activity_ID
|
|
||||||
Business Activity
|
|
||||||
*/
|
|
||||||
public void setC_Activity_ID (int C_Activity_ID)
|
|
||||||
{
|
|
||||||
if (C_Activity_ID < 1)
|
|
||||||
set_Value (COLUMNNAME_C_Activity_ID, null);
|
|
||||||
else
|
|
||||||
set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Activity.
|
|
||||||
@return Business Activity
|
|
||||||
*/
|
|
||||||
public int getC_Activity_ID ()
|
|
||||||
{
|
|
||||||
Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID);
|
|
||||||
if (ii == null)
|
|
||||||
return 0;
|
|
||||||
return ii.intValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
public I_C_BPartner getC_BPartner() throws Exception
|
|
||||||
{
|
|
||||||
Class<?> clazz = MTable.getClass(I_C_BPartner.Table_Name);
|
|
||||||
I_C_BPartner result = null;
|
|
||||||
try {
|
|
||||||
Constructor<?> constructor = null;
|
|
||||||
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
|
||||||
result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()});
|
|
||||||
} catch (Exception e) {
|
|
||||||
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
|
|
||||||
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
|
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Business Partner .
|
|
||||||
@param C_BPartner_ID
|
|
||||||
Identifies a Business Partner
|
|
||||||
*/
|
|
||||||
public void setC_BPartner_ID (int C_BPartner_ID)
|
|
||||||
{
|
|
||||||
if (C_BPartner_ID < 1)
|
|
||||||
set_Value (COLUMNNAME_C_BPartner_ID, null);
|
|
||||||
else
|
|
||||||
set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Business Partner .
|
|
||||||
@return Identifies a Business Partner
|
|
||||||
*/
|
|
||||||
public int getC_BPartner_ID ()
|
|
||||||
{
|
|
||||||
Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID);
|
|
||||||
if (ii == null)
|
|
||||||
return 0;
|
|
||||||
return ii.intValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
public I_C_Campaign getC_Campaign() throws Exception
|
|
||||||
{
|
|
||||||
Class<?> clazz = MTable.getClass(I_C_Campaign.Table_Name);
|
|
||||||
I_C_Campaign result = null;
|
|
||||||
try {
|
|
||||||
Constructor<?> constructor = null;
|
|
||||||
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
|
||||||
result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()});
|
|
||||||
} catch (Exception e) {
|
|
||||||
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
|
|
||||||
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
|
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Campaign.
|
|
||||||
@param C_Campaign_ID
|
|
||||||
Marketing Campaign
|
|
||||||
*/
|
|
||||||
public void setC_Campaign_ID (int C_Campaign_ID)
|
|
||||||
{
|
|
||||||
if (C_Campaign_ID < 1)
|
|
||||||
set_Value (COLUMNNAME_C_Campaign_ID, null);
|
|
||||||
else
|
|
||||||
set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Campaign.
|
|
||||||
@return Marketing Campaign
|
|
||||||
*/
|
|
||||||
public int getC_Campaign_ID ()
|
|
||||||
{
|
|
||||||
Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID);
|
|
||||||
if (ii == null)
|
|
||||||
return 0;
|
|
||||||
return ii.intValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
/** C_LocFrom_ID AD_Reference_ID=133 */
|
|
||||||
public static final int C_LOCFROM_ID_AD_Reference_ID=133;
|
|
||||||
/** Set Location From.
|
|
||||||
@param C_LocFrom_ID
|
|
||||||
Location that inventory was moved from
|
|
||||||
*/
|
|
||||||
public void setC_LocFrom_ID (int C_LocFrom_ID)
|
|
||||||
{
|
|
||||||
if (C_LocFrom_ID < 1)
|
|
||||||
set_Value (COLUMNNAME_C_LocFrom_ID, null);
|
|
||||||
else
|
|
||||||
set_Value (COLUMNNAME_C_LocFrom_ID, Integer.valueOf(C_LocFrom_ID));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Location From.
|
|
||||||
@return Location that inventory was moved from
|
|
||||||
*/
|
|
||||||
public int getC_LocFrom_ID ()
|
|
||||||
{
|
|
||||||
Integer ii = (Integer)get_Value(COLUMNNAME_C_LocFrom_ID);
|
|
||||||
if (ii == null)
|
|
||||||
return 0;
|
|
||||||
return ii.intValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
/** C_LocTo_ID AD_Reference_ID=133 */
|
|
||||||
public static final int C_LOCTO_ID_AD_Reference_ID=133;
|
|
||||||
/** Set Location To.
|
|
||||||
@param C_LocTo_ID
|
|
||||||
Location that inventory was moved to
|
|
||||||
*/
|
|
||||||
public void setC_LocTo_ID (int C_LocTo_ID)
|
|
||||||
{
|
|
||||||
if (C_LocTo_ID < 1)
|
|
||||||
set_Value (COLUMNNAME_C_LocTo_ID, null);
|
|
||||||
else
|
|
||||||
set_Value (COLUMNNAME_C_LocTo_ID, Integer.valueOf(C_LocTo_ID));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Location To.
|
|
||||||
@return Location that inventory was moved to
|
|
||||||
*/
|
|
||||||
public int getC_LocTo_ID ()
|
|
||||||
{
|
|
||||||
Integer ii = (Integer)get_Value(COLUMNNAME_C_LocTo_ID);
|
|
||||||
if (ii == null)
|
|
||||||
return 0;
|
|
||||||
return ii.intValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
public I_C_ProjectPhase getC_ProjectPhase() throws Exception
|
|
||||||
{
|
|
||||||
Class<?> clazz = MTable.getClass(I_C_ProjectPhase.Table_Name);
|
|
||||||
I_C_ProjectPhase result = null;
|
|
||||||
try {
|
|
||||||
Constructor<?> constructor = null;
|
|
||||||
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
|
||||||
result = (I_C_ProjectPhase)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ProjectPhase_ID()), get_TrxName()});
|
|
||||||
} catch (Exception e) {
|
|
||||||
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
|
|
||||||
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
|
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Project Phase.
|
|
||||||
@param C_ProjectPhase_ID
|
|
||||||
Phase of a Project
|
|
||||||
*/
|
|
||||||
public void setC_ProjectPhase_ID (int C_ProjectPhase_ID)
|
|
||||||
{
|
|
||||||
if (C_ProjectPhase_ID < 1)
|
|
||||||
set_ValueNoCheck (COLUMNNAME_C_ProjectPhase_ID, null);
|
|
||||||
else
|
|
||||||
set_ValueNoCheck (COLUMNNAME_C_ProjectPhase_ID, Integer.valueOf(C_ProjectPhase_ID));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Project Phase.
|
|
||||||
@return Phase of a Project
|
|
||||||
*/
|
|
||||||
public int getC_ProjectPhase_ID ()
|
|
||||||
{
|
|
||||||
Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectPhase_ID);
|
|
||||||
if (ii == null)
|
|
||||||
return 0;
|
|
||||||
return ii.intValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
public I_C_ProjectTask getC_ProjectTask() throws Exception
|
|
||||||
{
|
|
||||||
Class<?> clazz = MTable.getClass(I_C_ProjectTask.Table_Name);
|
|
||||||
I_C_ProjectTask result = null;
|
|
||||||
try {
|
|
||||||
Constructor<?> constructor = null;
|
|
||||||
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
|
||||||
result = (I_C_ProjectTask)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ProjectTask_ID()), get_TrxName()});
|
|
||||||
} catch (Exception e) {
|
|
||||||
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
|
|
||||||
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
|
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Project Task.
|
|
||||||
@param C_ProjectTask_ID
|
|
||||||
Actual Project Task in a Phase
|
|
||||||
*/
|
|
||||||
public void setC_ProjectTask_ID (int C_ProjectTask_ID)
|
|
||||||
{
|
|
||||||
if (C_ProjectTask_ID < 1)
|
|
||||||
set_ValueNoCheck (COLUMNNAME_C_ProjectTask_ID, null);
|
|
||||||
else
|
|
||||||
set_ValueNoCheck (COLUMNNAME_C_ProjectTask_ID, Integer.valueOf(C_ProjectTask_ID));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Project Task.
|
|
||||||
@return Actual Project Task in a Phase
|
|
||||||
*/
|
|
||||||
public int getC_ProjectTask_ID ()
|
|
||||||
{
|
|
||||||
Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectTask_ID);
|
|
||||||
if (ii == null)
|
|
||||||
return 0;
|
|
||||||
return ii.intValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
public I_C_Project getC_Project() throws Exception
|
|
||||||
{
|
|
||||||
Class<?> clazz = MTable.getClass(I_C_Project.Table_Name);
|
|
||||||
I_C_Project result = null;
|
|
||||||
try {
|
|
||||||
Constructor<?> constructor = null;
|
|
||||||
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
|
||||||
result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()});
|
|
||||||
} catch (Exception e) {
|
|
||||||
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
|
|
||||||
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
|
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Project.
|
|
||||||
@param C_Project_ID
|
|
||||||
Financial Project
|
|
||||||
*/
|
|
||||||
public void setC_Project_ID (int C_Project_ID)
|
|
||||||
{
|
|
||||||
if (C_Project_ID < 1)
|
|
||||||
set_Value (COLUMNNAME_C_Project_ID, null);
|
|
||||||
else
|
|
||||||
set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Project.
|
|
||||||
@return Financial Project
|
|
||||||
*/
|
|
||||||
public int getC_Project_ID ()
|
|
||||||
{
|
|
||||||
Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID);
|
|
||||||
if (ii == null)
|
|
||||||
return 0;
|
|
||||||
return ii.intValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
public I_C_SalesRegion getC_SalesRegion() throws Exception
|
|
||||||
{
|
|
||||||
Class<?> clazz = MTable.getClass(I_C_SalesRegion.Table_Name);
|
|
||||||
I_C_SalesRegion result = null;
|
|
||||||
try {
|
|
||||||
Constructor<?> constructor = null;
|
|
||||||
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
|
||||||
result = (I_C_SalesRegion)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_SalesRegion_ID()), get_TrxName()});
|
|
||||||
} catch (Exception e) {
|
|
||||||
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
|
|
||||||
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
|
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Sales Region.
|
|
||||||
@param C_SalesRegion_ID
|
|
||||||
Sales coverage region
|
|
||||||
*/
|
|
||||||
public void setC_SalesRegion_ID (int C_SalesRegion_ID)
|
|
||||||
{
|
|
||||||
if (C_SalesRegion_ID < 1)
|
|
||||||
set_Value (COLUMNNAME_C_SalesRegion_ID, null);
|
|
||||||
else
|
|
||||||
set_Value (COLUMNNAME_C_SalesRegion_ID, Integer.valueOf(C_SalesRegion_ID));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Sales Region.
|
|
||||||
@return Sales coverage region
|
|
||||||
*/
|
|
||||||
public int getC_SalesRegion_ID ()
|
|
||||||
{
|
|
||||||
Integer ii = (Integer)get_Value(COLUMNNAME_C_SalesRegion_ID);
|
|
||||||
if (ii == null)
|
|
||||||
return 0;
|
|
||||||
return ii.intValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
public I_C_SubAcct getC_SubAcct() throws Exception
|
|
||||||
{
|
|
||||||
Class<?> clazz = MTable.getClass(I_C_SubAcct.Table_Name);
|
|
||||||
I_C_SubAcct result = null;
|
|
||||||
try {
|
|
||||||
Constructor<?> constructor = null;
|
|
||||||
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
|
||||||
result = (I_C_SubAcct)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_SubAcct_ID()), get_TrxName()});
|
|
||||||
} catch (Exception e) {
|
|
||||||
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
|
|
||||||
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
|
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Sub Account.
|
|
||||||
@param C_SubAcct_ID
|
|
||||||
Sub account for Element Value
|
|
||||||
*/
|
|
||||||
public void setC_SubAcct_ID (int C_SubAcct_ID)
|
|
||||||
{
|
|
||||||
if (C_SubAcct_ID < 1)
|
|
||||||
set_ValueNoCheck (COLUMNNAME_C_SubAcct_ID, null);
|
|
||||||
else
|
|
||||||
set_ValueNoCheck (COLUMNNAME_C_SubAcct_ID, Integer.valueOf(C_SubAcct_ID));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Sub Account.
|
|
||||||
@return Sub account for Element Value
|
|
||||||
*/
|
|
||||||
public int getC_SubAcct_ID ()
|
|
||||||
{
|
|
||||||
Integer ii = (Integer)get_Value(COLUMNNAME_C_SubAcct_ID);
|
|
||||||
if (ii == null)
|
|
||||||
return 0;
|
|
||||||
return ii.intValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Account Date.
|
|
||||||
@param DateAcct
|
|
||||||
Accounting Date
|
|
||||||
*/
|
|
||||||
public void setDateAcct (Timestamp DateAcct)
|
|
||||||
{
|
|
||||||
if (DateAcct == null)
|
|
||||||
throw new IllegalArgumentException ("DateAcct is mandatory.");
|
|
||||||
set_Value (COLUMNNAME_DateAcct, DateAcct);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Account Date.
|
|
||||||
@return Accounting Date
|
|
||||||
*/
|
|
||||||
public Timestamp getDateAcct ()
|
|
||||||
{
|
|
||||||
return (Timestamp)get_Value(COLUMNNAME_DateAcct);
|
|
||||||
}
|
|
||||||
|
|
||||||
public I_GL_Budget getGL_Budget() throws Exception
|
|
||||||
{
|
|
||||||
Class<?> clazz = MTable.getClass(I_GL_Budget.Table_Name);
|
|
||||||
I_GL_Budget result = null;
|
|
||||||
try {
|
|
||||||
Constructor<?> constructor = null;
|
|
||||||
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
|
||||||
result = (I_GL_Budget)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_Budget_ID()), get_TrxName()});
|
|
||||||
} catch (Exception e) {
|
|
||||||
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
|
|
||||||
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
|
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Budget.
|
|
||||||
@param GL_Budget_ID
|
|
||||||
General Ledger Budget
|
|
||||||
*/
|
|
||||||
public void setGL_Budget_ID (int GL_Budget_ID)
|
|
||||||
{
|
|
||||||
if (GL_Budget_ID < 1)
|
|
||||||
set_Value (COLUMNNAME_GL_Budget_ID, null);
|
|
||||||
else
|
|
||||||
set_Value (COLUMNNAME_GL_Budget_ID, Integer.valueOf(GL_Budget_ID));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Budget.
|
|
||||||
@return General Ledger Budget
|
|
||||||
*/
|
|
||||||
public int getGL_Budget_ID ()
|
|
||||||
{
|
|
||||||
Integer ii = (Integer)get_Value(COLUMNNAME_GL_Budget_ID);
|
|
||||||
if (ii == null)
|
|
||||||
return 0;
|
|
||||||
return ii.intValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
public I_M_Product getM_Product() throws Exception
|
|
||||||
{
|
|
||||||
Class<?> clazz = MTable.getClass(I_M_Product.Table_Name);
|
|
||||||
I_M_Product result = null;
|
|
||||||
try {
|
|
||||||
Constructor<?> constructor = null;
|
|
||||||
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
|
||||||
result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()});
|
|
||||||
} catch (Exception e) {
|
|
||||||
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
|
|
||||||
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
|
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Product.
|
|
||||||
@param M_Product_ID
|
|
||||||
Product, Service, Item
|
|
||||||
*/
|
|
||||||
public void setM_Product_ID (int M_Product_ID)
|
|
||||||
{
|
|
||||||
if (M_Product_ID < 1)
|
|
||||||
set_Value (COLUMNNAME_M_Product_ID, null);
|
|
||||||
else
|
|
||||||
set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Product.
|
|
||||||
@return Product, Service, Item
|
|
||||||
*/
|
|
||||||
public int getM_Product_ID ()
|
|
||||||
{
|
|
||||||
Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID);
|
|
||||||
if (ii == null)
|
|
||||||
return 0;
|
|
||||||
return ii.intValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
/** PostingType AD_Reference_ID=125 */
|
|
||||||
public static final int POSTINGTYPE_AD_Reference_ID=125;
|
|
||||||
/** Actual = A */
|
|
||||||
public static final String POSTINGTYPE_Actual = "A";
|
|
||||||
/** Budget = B */
|
|
||||||
public static final String POSTINGTYPE_Budget = "B";
|
|
||||||
/** Commitment = E */
|
|
||||||
public static final String POSTINGTYPE_Commitment = "E";
|
|
||||||
/** Statistical = S */
|
|
||||||
public static final String POSTINGTYPE_Statistical = "S";
|
|
||||||
/** Reservation = R */
|
|
||||||
public static final String POSTINGTYPE_Reservation = "R";
|
|
||||||
/** Set PostingType.
|
|
||||||
@param PostingType
|
|
||||||
The type of posted amount for the transaction
|
|
||||||
*/
|
|
||||||
public void setPostingType (String PostingType)
|
|
||||||
{
|
|
||||||
if (PostingType == null) throw new IllegalArgumentException ("PostingType is mandatory");
|
|
||||||
if (PostingType.equals("A") || PostingType.equals("B") || PostingType.equals("E") || PostingType.equals("S") || PostingType.equals("R")); else throw new IllegalArgumentException ("PostingType Invalid value - " + PostingType + " - Reference_ID=125 - A - B - E - S - R");
|
|
||||||
if (PostingType.length() > 1)
|
|
||||||
{
|
|
||||||
log.warning("Length > 1 - truncated");
|
|
||||||
PostingType = PostingType.substring(0, 1);
|
|
||||||
}
|
|
||||||
set_Value (COLUMNNAME_PostingType, PostingType);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get PostingType.
|
|
||||||
@return The type of posted amount for the transaction
|
|
||||||
*/
|
|
||||||
public String getPostingType ()
|
|
||||||
{
|
|
||||||
return (String)get_Value(COLUMNNAME_PostingType);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Quantity.
|
|
||||||
@param Qty
|
|
||||||
Quantity
|
|
||||||
*/
|
|
||||||
public void setQty (BigDecimal Qty)
|
|
||||||
{
|
|
||||||
if (Qty == null)
|
|
||||||
throw new IllegalArgumentException ("Qty is mandatory.");
|
|
||||||
set_Value (COLUMNNAME_Qty, Qty);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Quantity.
|
|
||||||
@return Quantity
|
|
||||||
*/
|
|
||||||
public BigDecimal getQty ()
|
|
||||||
{
|
|
||||||
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty);
|
|
||||||
if (bd == null)
|
|
||||||
return Env.ZERO;
|
|
||||||
return bd;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** User1_ID AD_Reference_ID=134 */
|
|
||||||
public static final int USER1_ID_AD_Reference_ID=134;
|
|
||||||
/** Set User List 1.
|
|
||||||
@param User1_ID
|
|
||||||
User defined list element #1
|
|
||||||
*/
|
|
||||||
public void setUser1_ID (int User1_ID)
|
|
||||||
{
|
|
||||||
if (User1_ID < 1)
|
|
||||||
set_Value (COLUMNNAME_User1_ID, null);
|
|
||||||
else
|
|
||||||
set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get User List 1.
|
|
||||||
@return User defined list element #1
|
|
||||||
*/
|
|
||||||
public int getUser1_ID ()
|
|
||||||
{
|
|
||||||
Integer ii = (Integer)get_Value(COLUMNNAME_User1_ID);
|
|
||||||
if (ii == null)
|
|
||||||
return 0;
|
|
||||||
return ii.intValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
/** User2_ID AD_Reference_ID=137 */
|
|
||||||
public static final int USER2_ID_AD_Reference_ID=137;
|
|
||||||
/** Set User List 2.
|
|
||||||
@param User2_ID
|
|
||||||
User defined list element #2
|
|
||||||
*/
|
|
||||||
public void setUser2_ID (int User2_ID)
|
|
||||||
{
|
|
||||||
if (User2_ID < 1)
|
|
||||||
set_Value (COLUMNNAME_User2_ID, null);
|
|
||||||
else
|
|
||||||
set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get User List 2.
|
|
||||||
@return User defined list element #2
|
|
||||||
*/
|
|
||||||
public int getUser2_ID ()
|
|
||||||
{
|
|
||||||
Integer ii = (Integer)get_Value(COLUMNNAME_User2_ID);
|
|
||||||
if (ii == null)
|
|
||||||
return 0;
|
|
||||||
return ii.intValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set User Element 1.
|
|
||||||
@param UserElement1_ID
|
|
||||||
User defined accounting Element
|
|
||||||
*/
|
|
||||||
public void setUserElement1_ID (int UserElement1_ID)
|
|
||||||
{
|
|
||||||
if (UserElement1_ID < 1)
|
|
||||||
set_Value (COLUMNNAME_UserElement1_ID, null);
|
|
||||||
else
|
|
||||||
set_Value (COLUMNNAME_UserElement1_ID, Integer.valueOf(UserElement1_ID));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get User Element 1.
|
|
||||||
@return User defined accounting Element
|
|
||||||
*/
|
|
||||||
public int getUserElement1_ID ()
|
|
||||||
{
|
|
||||||
Integer ii = (Integer)get_Value(COLUMNNAME_UserElement1_ID);
|
|
||||||
if (ii == null)
|
|
||||||
return 0;
|
|
||||||
return ii.intValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set User Element 2.
|
|
||||||
@param UserElement2_ID
|
|
||||||
User defined accounting Element
|
|
||||||
*/
|
|
||||||
public void setUserElement2_ID (int UserElement2_ID)
|
|
||||||
{
|
|
||||||
if (UserElement2_ID < 1)
|
|
||||||
set_Value (COLUMNNAME_UserElement2_ID, null);
|
|
||||||
else
|
|
||||||
set_Value (COLUMNNAME_UserElement2_ID, Integer.valueOf(UserElement2_ID));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get User Element 2.
|
|
||||||
@return User defined accounting Element
|
|
||||||
*/
|
|
||||||
public int getUserElement2_ID ()
|
|
||||||
{
|
|
||||||
Integer ii = (Integer)get_Value(COLUMNNAME_UserElement2_ID);
|
|
||||||
if (ii == null)
|
|
||||||
return 0;
|
|
||||||
return ii.intValue();
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,541 +0,0 @@
|
||||||
/******************************************************************************
|
|
||||||
* Product: Adempiere ERP & CRM Smart Business Solution *
|
|
||||||
* Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. *
|
|
||||||
* This program is free software; you can redistribute it and/or modify it *
|
|
||||||
* under the terms version 2 of the GNU General Public License as published *
|
|
||||||
* by the Free Software Foundation. This program is distributed in the hope *
|
|
||||||
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
|
||||||
* See the GNU General Public License for more details. *
|
|
||||||
* You should have received a copy of the GNU General Public License along *
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc., *
|
|
||||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
|
||||||
* For the text or an alternative of this public license, you may reach us *
|
|
||||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
|
||||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
|
||||||
*****************************************************************************/
|
|
||||||
/** Generated Model - DO NOT CHANGE */
|
|
||||||
package org.compiere.model;
|
|
||||||
|
|
||||||
import java.lang.reflect.Constructor;
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.sql.ResultSet;
|
|
||||||
import java.sql.Timestamp;
|
|
||||||
import java.util.Properties;
|
|
||||||
import java.util.logging.Level;
|
|
||||||
import org.compiere.util.Env;
|
|
||||||
import org.compiere.util.KeyNamePair;
|
|
||||||
|
|
||||||
/** Generated Model for M_EDI
|
|
||||||
* @author Adempiere (generated)
|
|
||||||
* @version Release 3.5.2a - $Id$ */
|
|
||||||
public class X_M_EDI extends PO implements I_M_EDI, I_Persistent
|
|
||||||
{
|
|
||||||
/** Standard Constructor */
|
|
||||||
public X_M_EDI (Properties ctx, int M_EDI_ID, String trxName)
|
|
||||||
{
|
|
||||||
super (ctx, M_EDI_ID, trxName);
|
|
||||||
/** if (M_EDI_ID == 0)
|
|
||||||
{
|
|
||||||
setC_BP_EDI_ID (0);
|
|
||||||
setDocumentNo (null);
|
|
||||||
setEDIStatus (null);
|
|
||||||
setLine (0);
|
|
||||||
setM_EDI_ID (0);
|
|
||||||
setM_Product_ID (0);
|
|
||||||
setM_Warehouse_ID (0);
|
|
||||||
setProcessed (false);
|
|
||||||
setRequest_Qty (Env.ZERO);
|
|
||||||
setRequest_Shipdate (new Timestamp( System.currentTimeMillis() ));
|
|
||||||
setTrxSent (new Timestamp( System.currentTimeMillis() ));
|
|
||||||
setTrxType (null);
|
|
||||||
} */
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Load Constructor */
|
|
||||||
public X_M_EDI (Properties ctx, ResultSet rs, String trxName)
|
|
||||||
{
|
|
||||||
super (ctx, rs, trxName);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** AccessLevel
|
|
||||||
* @return 3 - Client - Org
|
|
||||||
*/
|
|
||||||
protected int get_AccessLevel()
|
|
||||||
{
|
|
||||||
return accessLevel.intValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Load Meta Data */
|
|
||||||
protected POInfo initPO (Properties ctx)
|
|
||||||
{
|
|
||||||
POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
|
|
||||||
return poi;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String toString()
|
|
||||||
{
|
|
||||||
StringBuffer sb = new StringBuffer ("X_M_EDI[")
|
|
||||||
.append(get_ID()).append("]");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
public I_C_BP_EDI getC_BP_EDI() throws Exception
|
|
||||||
{
|
|
||||||
Class<?> clazz = MTable.getClass(I_C_BP_EDI.Table_Name);
|
|
||||||
I_C_BP_EDI result = null;
|
|
||||||
try {
|
|
||||||
Constructor<?> constructor = null;
|
|
||||||
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
|
||||||
result = (I_C_BP_EDI)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BP_EDI_ID()), get_TrxName()});
|
|
||||||
} catch (Exception e) {
|
|
||||||
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
|
|
||||||
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
|
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set EDI Definition.
|
|
||||||
@param C_BP_EDI_ID
|
|
||||||
Electronic Data Interchange
|
|
||||||
*/
|
|
||||||
public void setC_BP_EDI_ID (int C_BP_EDI_ID)
|
|
||||||
{
|
|
||||||
if (C_BP_EDI_ID < 1)
|
|
||||||
throw new IllegalArgumentException ("C_BP_EDI_ID is mandatory.");
|
|
||||||
set_Value (COLUMNNAME_C_BP_EDI_ID, Integer.valueOf(C_BP_EDI_ID));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get EDI Definition.
|
|
||||||
@return Electronic Data Interchange
|
|
||||||
*/
|
|
||||||
public int getC_BP_EDI_ID ()
|
|
||||||
{
|
|
||||||
Integer ii = (Integer)get_Value(COLUMNNAME_C_BP_EDI_ID);
|
|
||||||
if (ii == null)
|
|
||||||
return 0;
|
|
||||||
return ii.intValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Document No.
|
|
||||||
@param DocumentNo
|
|
||||||
Document sequence number of the document
|
|
||||||
*/
|
|
||||||
public void setDocumentNo (String DocumentNo)
|
|
||||||
{
|
|
||||||
if (DocumentNo == null)
|
|
||||||
throw new IllegalArgumentException ("DocumentNo is mandatory.");
|
|
||||||
int fieldLength = p_info.getFieldLength( COLUMNNAME_DocumentNo );
|
|
||||||
|
|
||||||
if (DocumentNo.length() > fieldLength )
|
|
||||||
{
|
|
||||||
log.warning("Length > " + fieldLength + " - truncated");
|
|
||||||
DocumentNo = DocumentNo.substring(0, fieldLength );
|
|
||||||
}
|
|
||||||
set_Value (COLUMNNAME_DocumentNo, DocumentNo);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Document No.
|
|
||||||
@return Document sequence number of the document
|
|
||||||
*/
|
|
||||||
public String getDocumentNo ()
|
|
||||||
{
|
|
||||||
return (String)get_Value(COLUMNNAME_DocumentNo);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Record ID/ColumnName
|
|
||||||
@return ID/ColumnName pair
|
|
||||||
*/
|
|
||||||
public KeyNamePair getKeyNamePair()
|
|
||||||
{
|
|
||||||
return new KeyNamePair(get_ID(), getDocumentNo());
|
|
||||||
}
|
|
||||||
|
|
||||||
/** EDIStatus AD_Reference_ID=202 */
|
|
||||||
public static final int EDISTATUS_AD_Reference_ID=202;
|
|
||||||
/** Draft = D */
|
|
||||||
public static final String EDISTATUS_Draft = "D";
|
|
||||||
/** Sent = S */
|
|
||||||
public static final String EDISTATUS_Sent = "S";
|
|
||||||
/** Acknowledged = A */
|
|
||||||
public static final String EDISTATUS_Acknowledged = "A";
|
|
||||||
/** Answered (complete) = C */
|
|
||||||
public static final String EDISTATUS_AnsweredComplete = "C";
|
|
||||||
/** Set EDI Status.
|
|
||||||
@param EDIStatus EDI Status */
|
|
||||||
public void setEDIStatus (String EDIStatus)
|
|
||||||
{
|
|
||||||
if (EDIStatus == null) throw new IllegalArgumentException ("EDIStatus is mandatory");
|
|
||||||
if (EDIStatus.equals("D") || EDIStatus.equals("S") || EDIStatus.equals("A") || EDIStatus.equals("C")); else throw new IllegalArgumentException ("EDIStatus Invalid value - " + EDIStatus + " - Reference_ID=202 - D - S - A - C"); int fieldLength = p_info.getFieldLength( COLUMNNAME_EDIStatus );
|
|
||||||
|
|
||||||
if (EDIStatus.length() > fieldLength )
|
|
||||||
{
|
|
||||||
log.warning("Length > " + fieldLength + " - truncated");
|
|
||||||
EDIStatus = EDIStatus.substring(0, fieldLength );
|
|
||||||
}
|
|
||||||
set_ValueNoCheck (COLUMNNAME_EDIStatus, EDIStatus);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get EDI Status.
|
|
||||||
@return EDI Status */
|
|
||||||
public String getEDIStatus ()
|
|
||||||
{
|
|
||||||
return (String)get_Value(COLUMNNAME_EDIStatus);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Line No.
|
|
||||||
@param Line
|
|
||||||
Unique line for this document
|
|
||||||
*/
|
|
||||||
public void setLine (int Line)
|
|
||||||
{
|
|
||||||
set_Value (COLUMNNAME_Line, Integer.valueOf(Line));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Line No.
|
|
||||||
@return Unique line for this document
|
|
||||||
*/
|
|
||||||
public int getLine ()
|
|
||||||
{
|
|
||||||
Integer ii = (Integer)get_Value(COLUMNNAME_Line);
|
|
||||||
if (ii == null)
|
|
||||||
return 0;
|
|
||||||
return ii.intValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set EDI Transaction.
|
|
||||||
@param M_EDI_ID EDI Transaction */
|
|
||||||
public void setM_EDI_ID (int M_EDI_ID)
|
|
||||||
{
|
|
||||||
if (M_EDI_ID < 1)
|
|
||||||
throw new IllegalArgumentException ("M_EDI_ID is mandatory.");
|
|
||||||
set_ValueNoCheck (COLUMNNAME_M_EDI_ID, Integer.valueOf(M_EDI_ID));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get EDI Transaction.
|
|
||||||
@return EDI Transaction */
|
|
||||||
public int getM_EDI_ID ()
|
|
||||||
{
|
|
||||||
Integer ii = (Integer)get_Value(COLUMNNAME_M_EDI_ID);
|
|
||||||
if (ii == null)
|
|
||||||
return 0;
|
|
||||||
return ii.intValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
public I_M_Product getM_Product() throws Exception
|
|
||||||
{
|
|
||||||
Class<?> clazz = MTable.getClass(I_M_Product.Table_Name);
|
|
||||||
I_M_Product result = null;
|
|
||||||
try {
|
|
||||||
Constructor<?> constructor = null;
|
|
||||||
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
|
||||||
result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()});
|
|
||||||
} catch (Exception e) {
|
|
||||||
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
|
|
||||||
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
|
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Product.
|
|
||||||
@param M_Product_ID
|
|
||||||
Product, Service, Item
|
|
||||||
*/
|
|
||||||
public void setM_Product_ID (int M_Product_ID)
|
|
||||||
{
|
|
||||||
if (M_Product_ID < 1)
|
|
||||||
throw new IllegalArgumentException ("M_Product_ID is mandatory.");
|
|
||||||
set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Product.
|
|
||||||
@return Product, Service, Item
|
|
||||||
*/
|
|
||||||
public int getM_Product_ID ()
|
|
||||||
{
|
|
||||||
Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID);
|
|
||||||
if (ii == null)
|
|
||||||
return 0;
|
|
||||||
return ii.intValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
public I_M_Warehouse getM_Warehouse() throws Exception
|
|
||||||
{
|
|
||||||
Class<?> clazz = MTable.getClass(I_M_Warehouse.Table_Name);
|
|
||||||
I_M_Warehouse result = null;
|
|
||||||
try {
|
|
||||||
Constructor<?> constructor = null;
|
|
||||||
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
|
||||||
result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()});
|
|
||||||
} catch (Exception e) {
|
|
||||||
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
|
|
||||||
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
|
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Warehouse.
|
|
||||||
@param M_Warehouse_ID
|
|
||||||
Storage Warehouse and Service Point
|
|
||||||
*/
|
|
||||||
public void setM_Warehouse_ID (int M_Warehouse_ID)
|
|
||||||
{
|
|
||||||
if (M_Warehouse_ID < 1)
|
|
||||||
throw new IllegalArgumentException ("M_Warehouse_ID is mandatory.");
|
|
||||||
set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Warehouse.
|
|
||||||
@return Storage Warehouse and Service Point
|
|
||||||
*/
|
|
||||||
public int getM_Warehouse_ID ()
|
|
||||||
{
|
|
||||||
Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID);
|
|
||||||
if (ii == null)
|
|
||||||
return 0;
|
|
||||||
return ii.intValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Processed.
|
|
||||||
@param Processed
|
|
||||||
The document has been processed
|
|
||||||
*/
|
|
||||||
public void setProcessed (boolean Processed)
|
|
||||||
{
|
|
||||||
set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Processed.
|
|
||||||
@return The document has been processed
|
|
||||||
*/
|
|
||||||
public boolean isProcessed ()
|
|
||||||
{
|
|
||||||
Object oo = get_Value(COLUMNNAME_Processed);
|
|
||||||
if (oo != null)
|
|
||||||
{
|
|
||||||
if (oo instanceof Boolean)
|
|
||||||
return ((Boolean)oo).booleanValue();
|
|
||||||
return "Y".equals(oo);
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Reply Price.
|
|
||||||
@param Reply_Price
|
|
||||||
Confirmed Price from EDI Partner
|
|
||||||
*/
|
|
||||||
public void setReply_Price (BigDecimal Reply_Price)
|
|
||||||
{
|
|
||||||
set_Value (COLUMNNAME_Reply_Price, Reply_Price);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Reply Price.
|
|
||||||
@return Confirmed Price from EDI Partner
|
|
||||||
*/
|
|
||||||
public BigDecimal getReply_Price ()
|
|
||||||
{
|
|
||||||
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Reply_Price);
|
|
||||||
if (bd == null)
|
|
||||||
return Env.ZERO;
|
|
||||||
return bd;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Reply Qty Available.
|
|
||||||
@param Reply_QtyAvailable Reply Qty Available */
|
|
||||||
public void setReply_QtyAvailable (BigDecimal Reply_QtyAvailable)
|
|
||||||
{
|
|
||||||
set_Value (COLUMNNAME_Reply_QtyAvailable, Reply_QtyAvailable);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Reply Qty Available.
|
|
||||||
@return Reply Qty Available */
|
|
||||||
public BigDecimal getReply_QtyAvailable ()
|
|
||||||
{
|
|
||||||
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Reply_QtyAvailable);
|
|
||||||
if (bd == null)
|
|
||||||
return Env.ZERO;
|
|
||||||
return bd;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Reply Qty Confirmed.
|
|
||||||
@param Reply_QtyConfirmed Reply Qty Confirmed */
|
|
||||||
public void setReply_QtyConfirmed (BigDecimal Reply_QtyConfirmed)
|
|
||||||
{
|
|
||||||
set_Value (COLUMNNAME_Reply_QtyConfirmed, Reply_QtyConfirmed);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Reply Qty Confirmed.
|
|
||||||
@return Reply Qty Confirmed */
|
|
||||||
public BigDecimal getReply_QtyConfirmed ()
|
|
||||||
{
|
|
||||||
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Reply_QtyConfirmed);
|
|
||||||
if (bd == null)
|
|
||||||
return Env.ZERO;
|
|
||||||
return bd;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Reply Received.
|
|
||||||
@param Reply_Received Reply Received */
|
|
||||||
public void setReply_Received (Timestamp Reply_Received)
|
|
||||||
{
|
|
||||||
set_Value (COLUMNNAME_Reply_Received, Reply_Received);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Reply Received.
|
|
||||||
@return Reply Received */
|
|
||||||
public Timestamp getReply_Received ()
|
|
||||||
{
|
|
||||||
return (Timestamp)get_Value(COLUMNNAME_Reply_Received);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Reply Remarks.
|
|
||||||
@param Reply_Remarks Reply Remarks */
|
|
||||||
public void setReply_Remarks (String Reply_Remarks)
|
|
||||||
{
|
|
||||||
int fieldLength = p_info.getFieldLength( COLUMNNAME_Reply_Remarks );
|
|
||||||
|
|
||||||
if (Reply_Remarks != null && Reply_Remarks.length() > fieldLength )
|
|
||||||
{
|
|
||||||
log.warning("Length > " + fieldLength + " - truncated");
|
|
||||||
Reply_Remarks = Reply_Remarks.substring(0, fieldLength );
|
|
||||||
}
|
|
||||||
set_Value (COLUMNNAME_Reply_Remarks, Reply_Remarks);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Reply Remarks.
|
|
||||||
@return Reply Remarks */
|
|
||||||
public String getReply_Remarks ()
|
|
||||||
{
|
|
||||||
return (String)get_Value(COLUMNNAME_Reply_Remarks);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Reply Ship date.
|
|
||||||
@param Reply_ShipDate Reply Ship date */
|
|
||||||
public void setReply_ShipDate (Timestamp Reply_ShipDate)
|
|
||||||
{
|
|
||||||
set_Value (COLUMNNAME_Reply_ShipDate, Reply_ShipDate);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Reply Ship date.
|
|
||||||
@return Reply Ship date */
|
|
||||||
public Timestamp getReply_ShipDate ()
|
|
||||||
{
|
|
||||||
return (Timestamp)get_Value(COLUMNNAME_Reply_ShipDate);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Request Price.
|
|
||||||
@param Request_Price Request Price */
|
|
||||||
public void setRequest_Price (BigDecimal Request_Price)
|
|
||||||
{
|
|
||||||
set_Value (COLUMNNAME_Request_Price, Request_Price);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Request Price.
|
|
||||||
@return Request Price */
|
|
||||||
public BigDecimal getRequest_Price ()
|
|
||||||
{
|
|
||||||
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Request_Price);
|
|
||||||
if (bd == null)
|
|
||||||
return Env.ZERO;
|
|
||||||
return bd;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Request Qty.
|
|
||||||
@param Request_Qty Request Qty */
|
|
||||||
public void setRequest_Qty (BigDecimal Request_Qty)
|
|
||||||
{
|
|
||||||
if (Request_Qty == null)
|
|
||||||
throw new IllegalArgumentException ("Request_Qty is mandatory.");
|
|
||||||
set_Value (COLUMNNAME_Request_Qty, Request_Qty);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Request Qty.
|
|
||||||
@return Request Qty */
|
|
||||||
public BigDecimal getRequest_Qty ()
|
|
||||||
{
|
|
||||||
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Request_Qty);
|
|
||||||
if (bd == null)
|
|
||||||
return Env.ZERO;
|
|
||||||
return bd;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Request Ship date.
|
|
||||||
@param Request_Shipdate Request Ship date */
|
|
||||||
public void setRequest_Shipdate (Timestamp Request_Shipdate)
|
|
||||||
{
|
|
||||||
if (Request_Shipdate == null)
|
|
||||||
throw new IllegalArgumentException ("Request_Shipdate is mandatory.");
|
|
||||||
set_Value (COLUMNNAME_Request_Shipdate, Request_Shipdate);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Request Ship date.
|
|
||||||
@return Request Ship date */
|
|
||||||
public Timestamp getRequest_Shipdate ()
|
|
||||||
{
|
|
||||||
return (Timestamp)get_Value(COLUMNNAME_Request_Shipdate);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Transaction received.
|
|
||||||
@param TrxReceived Transaction received */
|
|
||||||
public void setTrxReceived (Timestamp TrxReceived)
|
|
||||||
{
|
|
||||||
set_Value (COLUMNNAME_TrxReceived, TrxReceived);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Transaction received.
|
|
||||||
@return Transaction received */
|
|
||||||
public Timestamp getTrxReceived ()
|
|
||||||
{
|
|
||||||
return (Timestamp)get_Value(COLUMNNAME_TrxReceived);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Transaction sent.
|
|
||||||
@param TrxSent Transaction sent */
|
|
||||||
public void setTrxSent (Timestamp TrxSent)
|
|
||||||
{
|
|
||||||
if (TrxSent == null)
|
|
||||||
throw new IllegalArgumentException ("TrxSent is mandatory.");
|
|
||||||
set_Value (COLUMNNAME_TrxSent, TrxSent);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Transaction sent.
|
|
||||||
@return Transaction sent */
|
|
||||||
public Timestamp getTrxSent ()
|
|
||||||
{
|
|
||||||
return (Timestamp)get_Value(COLUMNNAME_TrxSent);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** TrxType AD_Reference_ID=203 */
|
|
||||||
public static final int TRXTYPE_AD_Reference_ID=203;
|
|
||||||
/** Inquiry = I */
|
|
||||||
public static final String TRXTYPE_Inquiry = "I";
|
|
||||||
/** Purchase Order = O */
|
|
||||||
public static final String TRXTYPE_PurchaseOrder = "O";
|
|
||||||
/** Set Transaction Type.
|
|
||||||
@param TrxType
|
|
||||||
Type of credit card transaction
|
|
||||||
*/
|
|
||||||
public void setTrxType (String TrxType)
|
|
||||||
{
|
|
||||||
if (TrxType == null) throw new IllegalArgumentException ("TrxType is mandatory");
|
|
||||||
if (TrxType.equals("I") || TrxType.equals("O")); else throw new IllegalArgumentException ("TrxType Invalid value - " + TrxType + " - Reference_ID=203 - I - O"); int fieldLength = p_info.getFieldLength( COLUMNNAME_TrxType );
|
|
||||||
|
|
||||||
if (TrxType.length() > fieldLength )
|
|
||||||
{
|
|
||||||
log.warning("Length > " + fieldLength + " - truncated");
|
|
||||||
TrxType = TrxType.substring(0, fieldLength );
|
|
||||||
}
|
|
||||||
set_ValueNoCheck (COLUMNNAME_TrxType, TrxType);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Transaction Type.
|
|
||||||
@return Type of credit card transaction
|
|
||||||
*/
|
|
||||||
public String getTrxType ()
|
|
||||||
{
|
|
||||||
return (String)get_Value(COLUMNNAME_TrxType);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,158 +0,0 @@
|
||||||
/******************************************************************************
|
|
||||||
* Product: Adempiere ERP & CRM Smart Business Solution *
|
|
||||||
* Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. *
|
|
||||||
* This program is free software; you can redistribute it and/or modify it *
|
|
||||||
* under the terms version 2 of the GNU General Public License as published *
|
|
||||||
* by the Free Software Foundation. This program is distributed in the hope *
|
|
||||||
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
|
||||||
* See the GNU General Public License for more details. *
|
|
||||||
* You should have received a copy of the GNU General Public License along *
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc., *
|
|
||||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
|
||||||
* For the text or an alternative of this public license, you may reach us *
|
|
||||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
|
||||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
|
||||||
*****************************************************************************/
|
|
||||||
/** Generated Model - DO NOT CHANGE */
|
|
||||||
package org.compiere.model;
|
|
||||||
|
|
||||||
import java.lang.reflect.Constructor;
|
|
||||||
import java.sql.ResultSet;
|
|
||||||
import java.util.Properties;
|
|
||||||
import java.util.logging.Level;
|
|
||||||
import org.compiere.util.KeyNamePair;
|
|
||||||
|
|
||||||
/** Generated Model for M_EDI_Info
|
|
||||||
* @author Adempiere (generated)
|
|
||||||
* @version Release 3.5.2a - $Id$ */
|
|
||||||
public class X_M_EDI_Info extends PO implements I_M_EDI_Info, I_Persistent
|
|
||||||
{
|
|
||||||
/** Standard Constructor */
|
|
||||||
public X_M_EDI_Info (Properties ctx, int M_EDI_Info_ID, String trxName)
|
|
||||||
{
|
|
||||||
super (ctx, M_EDI_Info_ID, trxName);
|
|
||||||
/** if (M_EDI_Info_ID == 0)
|
|
||||||
{
|
|
||||||
setInfo (null);
|
|
||||||
setM_EDI_ID (0);
|
|
||||||
setM_EDI_Info_ID (0);
|
|
||||||
} */
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Load Constructor */
|
|
||||||
public X_M_EDI_Info (Properties ctx, ResultSet rs, String trxName)
|
|
||||||
{
|
|
||||||
super (ctx, rs, trxName);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** AccessLevel
|
|
||||||
* @return 3 - Client - Org
|
|
||||||
*/
|
|
||||||
protected int get_AccessLevel()
|
|
||||||
{
|
|
||||||
return accessLevel.intValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Load Meta Data */
|
|
||||||
protected POInfo initPO (Properties ctx)
|
|
||||||
{
|
|
||||||
POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
|
|
||||||
return poi;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String toString()
|
|
||||||
{
|
|
||||||
StringBuffer sb = new StringBuffer ("X_M_EDI_Info[")
|
|
||||||
.append(get_ID()).append("]");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Info.
|
|
||||||
@param Info
|
|
||||||
Information
|
|
||||||
*/
|
|
||||||
public void setInfo (String Info)
|
|
||||||
{
|
|
||||||
if (Info == null)
|
|
||||||
throw new IllegalArgumentException ("Info is mandatory.");
|
|
||||||
int fieldLength = p_info.getFieldLength( COLUMNNAME_Info );
|
|
||||||
|
|
||||||
if (Info.length() > fieldLength )
|
|
||||||
{
|
|
||||||
log.warning("Length > " + fieldLength + " - truncated");
|
|
||||||
Info = Info.substring(0, fieldLength );
|
|
||||||
}
|
|
||||||
set_Value (COLUMNNAME_Info, Info);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Info.
|
|
||||||
@return Information
|
|
||||||
*/
|
|
||||||
public String getInfo ()
|
|
||||||
{
|
|
||||||
return (String)get_Value(COLUMNNAME_Info);
|
|
||||||
}
|
|
||||||
|
|
||||||
public I_M_EDI getM_EDI() throws Exception
|
|
||||||
{
|
|
||||||
Class<?> clazz = MTable.getClass(I_M_EDI.Table_Name);
|
|
||||||
I_M_EDI result = null;
|
|
||||||
try {
|
|
||||||
Constructor<?> constructor = null;
|
|
||||||
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
|
||||||
result = (I_M_EDI)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_EDI_ID()), get_TrxName()});
|
|
||||||
} catch (Exception e) {
|
|
||||||
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
|
|
||||||
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
|
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set EDI Transaction.
|
|
||||||
@param M_EDI_ID EDI Transaction */
|
|
||||||
public void setM_EDI_ID (int M_EDI_ID)
|
|
||||||
{
|
|
||||||
if (M_EDI_ID < 1)
|
|
||||||
throw new IllegalArgumentException ("M_EDI_ID is mandatory.");
|
|
||||||
set_ValueNoCheck (COLUMNNAME_M_EDI_ID, Integer.valueOf(M_EDI_ID));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get EDI Transaction.
|
|
||||||
@return EDI Transaction */
|
|
||||||
public int getM_EDI_ID ()
|
|
||||||
{
|
|
||||||
Integer ii = (Integer)get_Value(COLUMNNAME_M_EDI_ID);
|
|
||||||
if (ii == null)
|
|
||||||
return 0;
|
|
||||||
return ii.intValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Record ID/ColumnName
|
|
||||||
@return ID/ColumnName pair
|
|
||||||
*/
|
|
||||||
public KeyNamePair getKeyNamePair()
|
|
||||||
{
|
|
||||||
return new KeyNamePair(get_ID(), String.valueOf(getM_EDI_ID()));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set EDI Log.
|
|
||||||
@param M_EDI_Info_ID EDI Log */
|
|
||||||
public void setM_EDI_Info_ID (int M_EDI_Info_ID)
|
|
||||||
{
|
|
||||||
if (M_EDI_Info_ID < 1)
|
|
||||||
throw new IllegalArgumentException ("M_EDI_Info_ID is mandatory.");
|
|
||||||
set_ValueNoCheck (COLUMNNAME_M_EDI_Info_ID, Integer.valueOf(M_EDI_Info_ID));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get EDI Log.
|
|
||||||
@return EDI Log */
|
|
||||||
public int getM_EDI_Info_ID ()
|
|
||||||
{
|
|
||||||
Integer ii = (Integer)get_Value(COLUMNNAME_M_EDI_Info_ID);
|
|
||||||
if (ii == null)
|
|
||||||
return 0;
|
|
||||||
return ii.intValue();
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue