/******************************************************************************
 * 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;
import org.compiere.util.ValueNamePair;

/** Generated Model for T_Report
 *  @author iDempiere (generated)
 *  @version Release 11 - $Id$ */
@org.adempiere.base.Model(table="T_Report")
public class X_T_Report extends PO implements I_T_Report, I_Persistent
{

	/**
	 *
	 */
	private static final long serialVersionUID = 20231222L;

    /** Standard Constructor */
    public X_T_Report (Properties ctx, int T_Report_ID, String trxName)
    {
      super (ctx, T_Report_ID, trxName);
      /** if (T_Report_ID == 0)
        {
			setAD_PInstance_ID (0);
			setFact_Acct_ID (0);
			setPA_ReportLine_ID (0);
			setRecord_ID (0);
        } */
    }

    /** Standard Constructor */
    public X_T_Report (Properties ctx, int T_Report_ID, String trxName, String ... virtualColumns)
    {
      super (ctx, T_Report_ID, trxName, virtualColumns);
      /** if (T_Report_ID == 0)
        {
			setAD_PInstance_ID (0);
			setFact_Acct_ID (0);
			setPA_ReportLine_ID (0);
			setRecord_ID (0);
        } */
    }

    /** Standard Constructor */
    public X_T_Report (Properties ctx, String T_Report_UU, String trxName)
    {
      super (ctx, T_Report_UU, trxName);
      /** if (T_Report_UU == null)
        {
			setAD_PInstance_ID (0);
			setFact_Acct_ID (0);
			setPA_ReportLine_ID (0);
			setRecord_ID (0);
        } */
    }

    /** Standard Constructor */
    public X_T_Report (Properties ctx, String T_Report_UU, String trxName, String ... virtualColumns)
    {
      super (ctx, T_Report_UU, trxName, virtualColumns);
      /** if (T_Report_UU == null)
        {
			setAD_PInstance_ID (0);
			setFact_Acct_ID (0);
			setPA_ReportLine_ID (0);
			setRecord_ID (0);
        } */
    }

    /** Load Constructor */
    public X_T_Report (Properties ctx, ResultSet rs, String trxName)
    {
      super (ctx, rs, trxName);
    }

    /** AccessLevel
      * @return 4 - System
      */
    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_Report[")
        .append(get_UUID()).append(",Name=").append(getName()).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();
	}

	/** Set Col_0.
		@param Col_0 Col_0
	*/
	public void setCol_0 (BigDecimal Col_0)
	{
		set_ValueNoCheck (COLUMNNAME_Col_0, Col_0);
	}

	/** Get Col_0.
		@return Col_0	  */
	public BigDecimal getCol_0()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_0);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Col_1.
		@param Col_1 Col_1
	*/
	public void setCol_1 (BigDecimal Col_1)
	{
		set_ValueNoCheck (COLUMNNAME_Col_1, Col_1);
	}

	/** Get Col_1.
		@return Col_1	  */
	public BigDecimal getCol_1()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_1);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Col_10.
		@param Col_10 Col_10
	*/
	public void setCol_10 (BigDecimal Col_10)
	{
		set_ValueNoCheck (COLUMNNAME_Col_10, Col_10);
	}

	/** Get Col_10.
		@return Col_10	  */
	public BigDecimal getCol_10()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_10);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Col_11.
		@param Col_11 Col_11
	*/
	public void setCol_11 (BigDecimal Col_11)
	{
		set_ValueNoCheck (COLUMNNAME_Col_11, Col_11);
	}

	/** Get Col_11.
		@return Col_11	  */
	public BigDecimal getCol_11()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_11);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Col_12.
		@param Col_12 Col_12
	*/
	public void setCol_12 (BigDecimal Col_12)
	{
		set_ValueNoCheck (COLUMNNAME_Col_12, Col_12);
	}

	/** Get Col_12.
		@return Col_12	  */
	public BigDecimal getCol_12()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_12);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Col_13.
		@param Col_13 Col_13
	*/
	public void setCol_13 (BigDecimal Col_13)
	{
		set_ValueNoCheck (COLUMNNAME_Col_13, Col_13);
	}

	/** Get Col_13.
		@return Col_13	  */
	public BigDecimal getCol_13()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_13);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Col_14.
		@param Col_14 Col_14
	*/
	public void setCol_14 (BigDecimal Col_14)
	{
		set_ValueNoCheck (COLUMNNAME_Col_14, Col_14);
	}

	/** Get Col_14.
		@return Col_14	  */
	public BigDecimal getCol_14()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_14);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Col_15.
		@param Col_15 Col_15
	*/
	public void setCol_15 (BigDecimal Col_15)
	{
		set_ValueNoCheck (COLUMNNAME_Col_15, Col_15);
	}

	/** Get Col_15.
		@return Col_15	  */
	public BigDecimal getCol_15()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_15);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Col_16.
		@param Col_16 Col_16
	*/
	public void setCol_16 (BigDecimal Col_16)
	{
		set_ValueNoCheck (COLUMNNAME_Col_16, Col_16);
	}

	/** Get Col_16.
		@return Col_16	  */
	public BigDecimal getCol_16()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_16);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Col_17.
		@param Col_17 Col_17
	*/
	public void setCol_17 (BigDecimal Col_17)
	{
		set_ValueNoCheck (COLUMNNAME_Col_17, Col_17);
	}

	/** Get Col_17.
		@return Col_17	  */
	public BigDecimal getCol_17()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_17);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Col_18.
		@param Col_18 Col_18
	*/
	public void setCol_18 (BigDecimal Col_18)
	{
		set_ValueNoCheck (COLUMNNAME_Col_18, Col_18);
	}

	/** Get Col_18.
		@return Col_18	  */
	public BigDecimal getCol_18()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_18);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Col_19.
		@param Col_19 Col_19
	*/
	public void setCol_19 (BigDecimal Col_19)
	{
		set_ValueNoCheck (COLUMNNAME_Col_19, Col_19);
	}

	/** Get Col_19.
		@return Col_19	  */
	public BigDecimal getCol_19()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_19);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Col_2.
		@param Col_2 Col_2
	*/
	public void setCol_2 (BigDecimal Col_2)
	{
		set_ValueNoCheck (COLUMNNAME_Col_2, Col_2);
	}

	/** Get Col_2.
		@return Col_2	  */
	public BigDecimal getCol_2()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_2);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Col_20.
		@param Col_20 Col_20
	*/
	public void setCol_20 (BigDecimal Col_20)
	{
		set_ValueNoCheck (COLUMNNAME_Col_20, Col_20);
	}

	/** Get Col_20.
		@return Col_20	  */
	public BigDecimal getCol_20()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_20);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Col_21.
		@param Col_21 Col_21
	*/
	public void setCol_21 (BigDecimal Col_21)
	{
		set_ValueNoCheck (COLUMNNAME_Col_21, Col_21);
	}

	/** Get Col_21.
		@return Col_21	  */
	public BigDecimal getCol_21()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_21);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Col_22.
		@param Col_22 Col_22
	*/
	public void setCol_22 (BigDecimal Col_22)
	{
		set_ValueNoCheck (COLUMNNAME_Col_22, Col_22);
	}

	/** Get Col_22.
		@return Col_22	  */
	public BigDecimal getCol_22()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_22);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Col_23.
		@param Col_23 Col_23
	*/
	public void setCol_23 (BigDecimal Col_23)
	{
		set_ValueNoCheck (COLUMNNAME_Col_23, Col_23);
	}

	/** Get Col_23.
		@return Col_23	  */
	public BigDecimal getCol_23()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_23);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Col_24.
		@param Col_24 Col_24
	*/
	public void setCol_24 (BigDecimal Col_24)
	{
		set_ValueNoCheck (COLUMNNAME_Col_24, Col_24);
	}

	/** Get Col_24.
		@return Col_24	  */
	public BigDecimal getCol_24()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_24);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Col_25.
		@param Col_25 Col_25
	*/
	public void setCol_25 (BigDecimal Col_25)
	{
		set_ValueNoCheck (COLUMNNAME_Col_25, Col_25);
	}

	/** Get Col_25.
		@return Col_25	  */
	public BigDecimal getCol_25()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_25);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Col_26.
		@param Col_26 Col_26
	*/
	public void setCol_26 (BigDecimal Col_26)
	{
		set_ValueNoCheck (COLUMNNAME_Col_26, Col_26);
	}

	/** Get Col_26.
		@return Col_26	  */
	public BigDecimal getCol_26()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_26);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Col_27.
		@param Col_27 Col_27
	*/
	public void setCol_27 (BigDecimal Col_27)
	{
		set_ValueNoCheck (COLUMNNAME_Col_27, Col_27);
	}

	/** Get Col_27.
		@return Col_27	  */
	public BigDecimal getCol_27()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_27);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Col_28.
		@param Col_28 Col_28
	*/
	public void setCol_28 (BigDecimal Col_28)
	{
		set_ValueNoCheck (COLUMNNAME_Col_28, Col_28);
	}

	/** Get Col_28.
		@return Col_28	  */
	public BigDecimal getCol_28()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_28);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Col_29.
		@param Col_29 Col_29
	*/
	public void setCol_29 (BigDecimal Col_29)
	{
		set_ValueNoCheck (COLUMNNAME_Col_29, Col_29);
	}

	/** Get Col_29.
		@return Col_29	  */
	public BigDecimal getCol_29()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_29);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Col_3.
		@param Col_3 Col_3
	*/
	public void setCol_3 (BigDecimal Col_3)
	{
		set_ValueNoCheck (COLUMNNAME_Col_3, Col_3);
	}

	/** Get Col_3.
		@return Col_3	  */
	public BigDecimal getCol_3()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_3);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Col_30.
		@param Col_30 Col_30
	*/
	public void setCol_30 (BigDecimal Col_30)
	{
		set_ValueNoCheck (COLUMNNAME_Col_30, Col_30);
	}

	/** Get Col_30.
		@return Col_30	  */
	public BigDecimal getCol_30()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_30);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Col_4.
		@param Col_4 Col_4
	*/
	public void setCol_4 (BigDecimal Col_4)
	{
		set_ValueNoCheck (COLUMNNAME_Col_4, Col_4);
	}

	/** Get Col_4.
		@return Col_4	  */
	public BigDecimal getCol_4()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_4);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Col_5.
		@param Col_5 Col_5
	*/
	public void setCol_5 (BigDecimal Col_5)
	{
		set_ValueNoCheck (COLUMNNAME_Col_5, Col_5);
	}

	/** Get Col_5.
		@return Col_5	  */
	public BigDecimal getCol_5()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_5);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Col_6.
		@param Col_6 Col_6
	*/
	public void setCol_6 (BigDecimal Col_6)
	{
		set_ValueNoCheck (COLUMNNAME_Col_6, Col_6);
	}

	/** Get Col_6.
		@return Col_6	  */
	public BigDecimal getCol_6()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_6);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Col_7.
		@param Col_7 Col_7
	*/
	public void setCol_7 (BigDecimal Col_7)
	{
		set_ValueNoCheck (COLUMNNAME_Col_7, Col_7);
	}

	/** Get Col_7.
		@return Col_7	  */
	public BigDecimal getCol_7()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_7);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Col_8.
		@param Col_8 Col_8
	*/
	public void setCol_8 (BigDecimal Col_8)
	{
		set_ValueNoCheck (COLUMNNAME_Col_8, Col_8);
	}

	/** Get Col_8.
		@return Col_8	  */
	public BigDecimal getCol_8()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_8);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Col_9.
		@param Col_9 Col_9
	*/
	public void setCol_9 (BigDecimal Col_9)
	{
		set_ValueNoCheck (COLUMNNAME_Col_9, Col_9);
	}

	/** Get Col_9.
		@return Col_9	  */
	public BigDecimal getCol_9()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_9);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Description.
		@param Description Optional short description of the record
	*/
	public void setDescription (String Description)
	{
		set_ValueNoCheck (COLUMNNAME_Description, Description);
	}

	/** Get Description.
		@return Optional short description of the record
	  */
	public String getDescription()
	{
		return (String)get_Value(COLUMNNAME_Description);
	}

	/** Set Accounting Fact.
		@param Fact_Acct_ID Accounting Fact
	*/
	public void setFact_Acct_ID (int Fact_Acct_ID)
	{
		if (Fact_Acct_ID < 1)
			set_ValueNoCheck (COLUMNNAME_Fact_Acct_ID, null);
		else
			set_ValueNoCheck (COLUMNNAME_Fact_Acct_ID, Integer.valueOf(Fact_Acct_ID));
	}

	/** Get Accounting Fact.
		@return Accounting Fact	  */
	public int getFact_Acct_ID()
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_Fact_Acct_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Level no.
		@param LevelNo Level no
	*/
	public void setLevelNo (int LevelNo)
	{
		set_ValueNoCheck (COLUMNNAME_LevelNo, Integer.valueOf(LevelNo));
	}

	/** Get Level no.
		@return Level no	  */
	public int getLevelNo()
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_LevelNo);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Name.
		@param Name Alphanumeric identifier of the entity
	*/
	public void setName (String Name)
	{
		set_ValueNoCheck (COLUMNNAME_Name, Name);
	}

	/** Get Name.
		@return Alphanumeric identifier of the entity
	  */
	public String getName()
	{
		return (String)get_Value(COLUMNNAME_Name);
	}

    /** Get Record UU/ColumnName
        @return UU/ColumnName pair
      */
    public ValueNamePair getValueNamePair()
    {
        return new ValueNamePair(get_UUID(), getName());
    }

	public org.compiere.model.I_PA_ReportLine getPA_ReportLine() throws RuntimeException
	{
		return (org.compiere.model.I_PA_ReportLine)MTable.get(getCtx(), org.compiere.model.I_PA_ReportLine.Table_ID)
			.getPO(getPA_ReportLine_ID(), get_TrxName());
	}

	/** Set Report Line.
		@param PA_ReportLine_ID Report Line
	*/
	public void setPA_ReportLine_ID (int PA_ReportLine_ID)
	{
		if (PA_ReportLine_ID < 1)
			set_ValueNoCheck (COLUMNNAME_PA_ReportLine_ID, null);
		else
			set_ValueNoCheck (COLUMNNAME_PA_ReportLine_ID, Integer.valueOf(PA_ReportLine_ID));
	}

	/** Get Report Line.
		@return Report Line	  */
	public int getPA_ReportLine_ID()
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_PA_ReportLine_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Record ID.
		@param Record_ID Direct internal record ID
	*/
	public void setRecord_ID (int Record_ID)
	{
		if (Record_ID < 0)
			set_ValueNoCheck (COLUMNNAME_Record_ID, null);
		else
			set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID));
	}

	/** Get Record ID.
		@return Direct internal record ID
	  */
	public int getRecord_ID()
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_Record_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Sequence.
		@param SeqNo Method of ordering records; lowest number comes first
	*/
	public void setSeqNo (int SeqNo)
	{
		set_ValueNoCheck (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo));
	}

	/** Get Sequence.
		@return Method of ordering records; lowest number comes first
	  */
	public int getSeqNo()
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set T_Report_UU.
		@param T_Report_UU T_Report_UU
	*/
	public void setT_Report_UU (String T_Report_UU)
	{
		set_Value (COLUMNNAME_T_Report_UU, T_Report_UU);
	}

	/** Get T_Report_UU.
		@return T_Report_UU	  */
	public String getT_Report_UU()
	{
		return (String)get_Value(COLUMNNAME_T_Report_UU);
	}
}