/****************************************************************************** * Product: iDempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2012 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.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; import org.compiere.util.Env; /** Generated Model for C_OrderLandedCostAllocation * @author iDempiere (generated) * @version Release 12 - $Id$ */ @org.adempiere.base.Model(table="C_OrderLandedCostAllocation") public class X_C_OrderLandedCostAllocation extends PO implements I_C_OrderLandedCostAllocation, I_Persistent { /** * */ private static final long serialVersionUID = 20241222L; /** Standard Constructor */ public X_C_OrderLandedCostAllocation (Properties ctx, int C_OrderLandedCostAllocation_ID, String trxName) { super (ctx, C_OrderLandedCostAllocation_ID, trxName); /** if (C_OrderLandedCostAllocation_ID == 0) { setAmt (Env.ZERO); setBase (Env.ZERO); setC_OrderLandedCostAllocation_ID (0); setC_OrderLandedCost_ID (0); setC_OrderLine_ID (0); setProcessed (false); // N setQty (Env.ZERO); } */ } /** Standard Constructor */ public X_C_OrderLandedCostAllocation (Properties ctx, int C_OrderLandedCostAllocation_ID, String trxName, String ... virtualColumns) { super (ctx, C_OrderLandedCostAllocation_ID, trxName, virtualColumns); /** if (C_OrderLandedCostAllocation_ID == 0) { setAmt (Env.ZERO); setBase (Env.ZERO); setC_OrderLandedCostAllocation_ID (0); setC_OrderLandedCost_ID (0); setC_OrderLine_ID (0); setProcessed (false); // N setQty (Env.ZERO); } */ } /** Standard Constructor */ public X_C_OrderLandedCostAllocation (Properties ctx, String C_OrderLandedCostAllocation_UU, String trxName) { super (ctx, C_OrderLandedCostAllocation_UU, trxName); /** if (C_OrderLandedCostAllocation_UU == null) { setAmt (Env.ZERO); setBase (Env.ZERO); setC_OrderLandedCostAllocation_ID (0); setC_OrderLandedCost_ID (0); setC_OrderLine_ID (0); setProcessed (false); // N setQty (Env.ZERO); } */ } /** Standard Constructor */ public X_C_OrderLandedCostAllocation (Properties ctx, String C_OrderLandedCostAllocation_UU, String trxName, String ... virtualColumns) { super (ctx, C_OrderLandedCostAllocation_UU, trxName, virtualColumns); /** if (C_OrderLandedCostAllocation_UU == null) { setAmt (Env.ZERO); setBase (Env.ZERO); setC_OrderLandedCostAllocation_ID (0); setC_OrderLandedCost_ID (0); setC_OrderLine_ID (0); setProcessed (false); // N setQty (Env.ZERO); } */ } /** Load Constructor */ public X_C_OrderLandedCostAllocation (Properties ctx, ResultSet rs, String trxName) { super (ctx, rs, trxName); } /** AccessLevel * @return 1 - Org */ protected int get_AccessLevel() { return accessLevel.intValue(); } /** Load Meta Data */ protected POInfo initPO (Properties ctx) { POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName()); return poi; } public String toString() { StringBuilder sb = new StringBuilder ("X_C_OrderLandedCostAllocation[") .append(get_ID()).append("]"); return sb.toString(); } /** Set Amount. @param Amt Amount */ public void setAmt (BigDecimal Amt) { set_Value (COLUMNNAME_Amt, Amt); } /** Get Amount. @return Amount */ public BigDecimal getAmt() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Amt); if (bd == null) return Env.ZERO; return bd; } /** Set Base. @param Base Calculation Base */ public void setBase (BigDecimal Base) { set_Value (COLUMNNAME_Base, Base); } /** Get Base. @return Calculation Base */ public BigDecimal getBase() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Base); if (bd == null) return Env.ZERO; return bd; } /** Set Estimated Landed Cost Allocation. @param C_OrderLandedCostAllocation_ID Estimated Landed Cost Allocation */ public void setC_OrderLandedCostAllocation_ID (int C_OrderLandedCostAllocation_ID) { if (C_OrderLandedCostAllocation_ID < 1) set_ValueNoCheck (COLUMNNAME_C_OrderLandedCostAllocation_ID, null); else set_ValueNoCheck (COLUMNNAME_C_OrderLandedCostAllocation_ID, Integer.valueOf(C_OrderLandedCostAllocation_ID)); } /** Get Estimated Landed Cost Allocation. @return Estimated Landed Cost Allocation */ public int getC_OrderLandedCostAllocation_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_C_OrderLandedCostAllocation_ID); if (ii == null) return 0; return ii.intValue(); } /** Set C_OrderLandedCostAllocation_UU. @param C_OrderLandedCostAllocation_UU C_OrderLandedCostAllocation_UU */ public void setC_OrderLandedCostAllocation_UU (String C_OrderLandedCostAllocation_UU) { set_Value (COLUMNNAME_C_OrderLandedCostAllocation_UU, C_OrderLandedCostAllocation_UU); } /** Get C_OrderLandedCostAllocation_UU. @return C_OrderLandedCostAllocation_UU */ public String getC_OrderLandedCostAllocation_UU() { return (String)get_Value(COLUMNNAME_C_OrderLandedCostAllocation_UU); } public org.compiere.model.I_C_OrderLandedCost getC_OrderLandedCost() throws RuntimeException { return (org.compiere.model.I_C_OrderLandedCost)MTable.get(getCtx(), org.compiere.model.I_C_OrderLandedCost.Table_ID) .getPO(getC_OrderLandedCost_ID(), get_TrxName()); } /** Set Estimated Landed Cost. @param C_OrderLandedCost_ID Estimated Landed Cost */ public void setC_OrderLandedCost_ID (int C_OrderLandedCost_ID) { if (C_OrderLandedCost_ID < 1) set_ValueNoCheck (COLUMNNAME_C_OrderLandedCost_ID, null); else set_ValueNoCheck (COLUMNNAME_C_OrderLandedCost_ID, Integer.valueOf(C_OrderLandedCost_ID)); } /** Get Estimated Landed Cost. @return Estimated Landed Cost */ public int getC_OrderLandedCost_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_C_OrderLandedCost_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_C_OrderLine getC_OrderLine() throws RuntimeException { return (org.compiere.model.I_C_OrderLine)MTable.get(getCtx(), org.compiere.model.I_C_OrderLine.Table_ID) .getPO(getC_OrderLine_ID(), get_TrxName()); } /** Set Sales Order Line. @param C_OrderLine_ID Sales Order Line */ public void setC_OrderLine_ID (int C_OrderLine_ID) { if (C_OrderLine_ID < 1) set_ValueNoCheck (COLUMNNAME_C_OrderLine_ID, null); else set_ValueNoCheck (COLUMNNAME_C_OrderLine_ID, Integer.valueOf(C_OrderLine_ID)); } /** Get Sales Order Line. @return Sales Order Line */ public int getC_OrderLine_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_C_OrderLine_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Processed. @param Processed The document has been processed */ public void setProcessed (boolean Processed) { set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); } /** Get Processed. @return The document has been processed */ public boolean isProcessed() { Object oo = get_Value(COLUMNNAME_Processed); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Quantity. @param Qty Quantity */ public void setQty (BigDecimal Qty) { set_Value (COLUMNNAME_Qty, Qty); } /** Get Quantity. @return Quantity */ public BigDecimal getQty() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); if (bd == null) return Env.ZERO; return bd; } }