/****************************************************************************** * 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.sql.Timestamp; import java.util.Properties; import org.compiere.util.Env; /** Generated Model for T_InventoryValue * @author iDempiere (generated) * @version Release 11 - $Id$ */ @org.adempiere.base.Model(table="T_InventoryValue") public class X_T_InventoryValue extends PO implements I_T_InventoryValue, I_Persistent { /** * */ private static final long serialVersionUID = 20231222L; /** Standard Constructor */ public X_T_InventoryValue (Properties ctx, String T_InventoryValue_UU, String trxName) { super (ctx, T_InventoryValue_UU, trxName); /** if (T_InventoryValue_UU == null) { setAD_PInstance_ID (0); setM_AttributeSetInstance_ID (0); setM_Product_ID (0); setM_Warehouse_ID (0); } */ } /** Standard Constructor */ public X_T_InventoryValue (Properties ctx, String T_InventoryValue_UU, String trxName, String ... virtualColumns) { super (ctx, T_InventoryValue_UU, trxName, virtualColumns); /** if (T_InventoryValue_UU == null) { setAD_PInstance_ID (0); setM_AttributeSetInstance_ID (0); setM_Product_ID (0); setM_Warehouse_ID (0); } */ } /** Load Constructor */ public X_T_InventoryValue (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() { StringBuilder sb = new StringBuilder ("X_T_InventoryValue[") .append(get_UUID()).append("]"); return sb.toString(); } public org.compiere.model.I_AD_PInstance getAD_PInstance() throws RuntimeException { return (org.compiere.model.I_AD_PInstance)MTable.get(getCtx(), org.compiere.model.I_AD_PInstance.Table_ID) .getPO(getAD_PInstance_ID(), get_TrxName()); } /** Set Process Instance. @param AD_PInstance_ID Instance of the process */ public void setAD_PInstance_ID (int AD_PInstance_ID) { if (AD_PInstance_ID < 1) set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, null); else set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); } /** Get Process Instance. @return Instance of the process */ public int getAD_PInstance_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_AD_PInstance_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_C_Currency getC_Currency() throws RuntimeException { return (org.compiere.model.I_C_Currency)MTable.get(getCtx(), org.compiere.model.I_C_Currency.Table_ID) .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID The Currency for this record */ public void setC_Currency_ID (int C_Currency_ID) { if (C_Currency_ID < 1) set_Value (COLUMNNAME_C_Currency_ID, null); else set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. @return The Currency for this record */ public int getC_Currency_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Cost. @param Cost Cost information */ public void setCost (BigDecimal Cost) { set_Value (COLUMNNAME_Cost, Cost); } /** Get Cost. @return Cost information */ public BigDecimal getCost() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Cost); if (bd == null) return Env.ZERO; return bd; } /** Set Cost Value. @param CostAmt Value with Cost */ public void setCostAmt (BigDecimal CostAmt) { set_Value (COLUMNNAME_CostAmt, CostAmt); } /** Get Cost Value. @return Value with Cost */ public BigDecimal getCostAmt() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CostAmt); if (bd == null) return Env.ZERO; return bd; } /** Set Standard Cost. @param CostStandard Standard Costs */ public void setCostStandard (BigDecimal CostStandard) { set_Value (COLUMNNAME_CostStandard, CostStandard); } /** Get Standard Cost. @return Standard Costs */ public BigDecimal getCostStandard() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CostStandard); if (bd == null) return Env.ZERO; return bd; } /** Set Standard Cost Value. @param CostStandardAmt Value in Standard Costs */ public void setCostStandardAmt (BigDecimal CostStandardAmt) { set_Value (COLUMNNAME_CostStandardAmt, CostStandardAmt); } /** Get Standard Cost Value. @return Value in Standard Costs */ public BigDecimal getCostStandardAmt() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CostStandardAmt); if (bd == null) return Env.ZERO; return bd; } /** Set Valuation Date. @param DateValue Date of valuation */ public void setDateValue (Timestamp DateValue) { set_Value (COLUMNNAME_DateValue, DateValue); } /** Get Valuation Date. @return Date of valuation */ public Timestamp getDateValue() { return (Timestamp)get_Value(COLUMNNAME_DateValue); } public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException { return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_ID) .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance */ public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) { if (M_AttributeSetInstance_ID < 0) set_Value (COLUMNNAME_M_AttributeSetInstance_ID, null); else set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); } /** Get Attribute Set Instance. @return Product Attribute Set Instance */ public int getM_AttributeSetInstance_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_M_CostElement getM_CostElement() throws RuntimeException { return (org.compiere.model.I_M_CostElement)MTable.get(getCtx(), org.compiere.model.I_M_CostElement.Table_ID) .getPO(getM_CostElement_ID(), get_TrxName()); } /** Set Cost Element. @param M_CostElement_ID Product Cost Element */ public void setM_CostElement_ID (int M_CostElement_ID) { if (M_CostElement_ID < 1) set_Value (COLUMNNAME_M_CostElement_ID, null); else set_Value (COLUMNNAME_M_CostElement_ID, Integer.valueOf(M_CostElement_ID)); } /** Get Cost Element. @return Product Cost Element */ public int getM_CostElement_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_M_CostElement_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_M_PriceList_Version getM_PriceList_Version() throws RuntimeException { return (org.compiere.model.I_M_PriceList_Version)MTable.get(getCtx(), org.compiere.model.I_M_PriceList_Version.Table_ID) .getPO(getM_PriceList_Version_ID(), get_TrxName()); } /** Set Price List Version. @param M_PriceList_Version_ID Identifies a unique instance of a Price List */ public void setM_PriceList_Version_ID (int M_PriceList_Version_ID) { if (M_PriceList_Version_ID < 1) set_Value (COLUMNNAME_M_PriceList_Version_ID, null); else set_Value (COLUMNNAME_M_PriceList_Version_ID, Integer.valueOf(M_PriceList_Version_ID)); } /** Get Price List Version. @return Identifies a unique instance of a Price List */ public int getM_PriceList_Version_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_M_PriceList_Version_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_M_Product getM_Product() throws RuntimeException { return (org.compiere.model.I_M_Product)MTable.get(getCtx(), org.compiere.model.I_M_Product.Table_ID) .getPO(getM_Product_ID(), get_TrxName()); } /** 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(); } public org.compiere.model.I_M_Warehouse getM_Warehouse() throws RuntimeException { return (org.compiere.model.I_M_Warehouse)MTable.get(getCtx(), org.compiere.model.I_M_Warehouse.Table_ID) .getPO(getM_Warehouse_ID(), get_TrxName()); } /** 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) set_Value (COLUMNNAME_M_Warehouse_ID, null); else 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 Limit Price. @param PriceLimit Lowest price for a product */ public void setPriceLimit (BigDecimal PriceLimit) { set_Value (COLUMNNAME_PriceLimit, PriceLimit); } /** Get Limit Price. @return Lowest price for a product */ public BigDecimal getPriceLimit() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceLimit); if (bd == null) return Env.ZERO; return bd; } /** Set Limit price Value. @param PriceLimitAmt Value with limit price */ public void setPriceLimitAmt (BigDecimal PriceLimitAmt) { set_Value (COLUMNNAME_PriceLimitAmt, PriceLimitAmt); } /** Get Limit price Value. @return Value with limit price */ public BigDecimal getPriceLimitAmt() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceLimitAmt); if (bd == null) return Env.ZERO; return bd; } /** Set List Price. @param PriceList List Price */ public void setPriceList (BigDecimal PriceList) { set_Value (COLUMNNAME_PriceList, PriceList); } /** Get List Price. @return List Price */ public BigDecimal getPriceList() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceList); if (bd == null) return Env.ZERO; return bd; } /** Set List price Value. @param PriceListAmt Valuation with List Price */ public void setPriceListAmt (BigDecimal PriceListAmt) { set_Value (COLUMNNAME_PriceListAmt, PriceListAmt); } /** Get List price Value. @return Valuation with List Price */ public BigDecimal getPriceListAmt() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceListAmt); if (bd == null) return Env.ZERO; return bd; } /** Set PO Price. @param PricePO Price based on a purchase order */ public void setPricePO (BigDecimal PricePO) { set_Value (COLUMNNAME_PricePO, PricePO); } /** Get PO Price. @return Price based on a purchase order */ public BigDecimal getPricePO() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PricePO); if (bd == null) return Env.ZERO; return bd; } /** Set PO Price Value. @param PricePOAmt Valuation with PO Price */ public void setPricePOAmt (BigDecimal PricePOAmt) { set_Value (COLUMNNAME_PricePOAmt, PricePOAmt); } /** Get PO Price Value. @return Valuation with PO Price */ public BigDecimal getPricePOAmt() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PricePOAmt); if (bd == null) return Env.ZERO; return bd; } /** Set Standard Price. @param PriceStd Standard Price */ public void setPriceStd (BigDecimal PriceStd) { set_Value (COLUMNNAME_PriceStd, PriceStd); } /** Get Standard Price. @return Standard Price */ public BigDecimal getPriceStd() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceStd); if (bd == null) return Env.ZERO; return bd; } /** Set Std Price Value. @param PriceStdAmt Valuation with standard price */ public void setPriceStdAmt (BigDecimal PriceStdAmt) { set_Value (COLUMNNAME_PriceStdAmt, PriceStdAmt); } /** Get Std Price Value. @return Valuation with standard price */ public BigDecimal getPriceStdAmt() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceStdAmt); if (bd == null) return Env.ZERO; return bd; } /** Set On Hand Quantity. @param QtyOnHand On Hand Quantity */ public void setQtyOnHand (BigDecimal QtyOnHand) { set_Value (COLUMNNAME_QtyOnHand, QtyOnHand); } /** Get On Hand Quantity. @return On Hand Quantity */ public BigDecimal getQtyOnHand() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyOnHand); if (bd == null) return Env.ZERO; return bd; } /** Set T_InventoryValue_UU. @param T_InventoryValue_UU T_InventoryValue_UU */ public void setT_InventoryValue_UU (String T_InventoryValue_UU) { set_Value (COLUMNNAME_T_InventoryValue_UU, T_InventoryValue_UU); } /** Get T_InventoryValue_UU. @return T_InventoryValue_UU */ public String getT_InventoryValue_UU() { return (String)get_Value(COLUMNNAME_T_InventoryValue_UU); } }