/****************************************************************************** * 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.sql.ResultSet; import java.util.Properties; import org.compiere.util.KeyNamePair; /** Generated Model for I_ReportLine * @author iDempiere (generated) * @version Release 11 - $Id$ */ @org.adempiere.base.Model(table="I_ReportLine") public class X_I_ReportLine extends PO implements I_I_ReportLine, I_Persistent { /** * */ private static final long serialVersionUID = 20231222L; /** Standard Constructor */ public X_I_ReportLine (Properties ctx, int I_ReportLine_ID, String trxName) { super (ctx, I_ReportLine_ID, trxName); /** if (I_ReportLine_ID == 0) { setI_IsImported (false); setI_ReportLine_ID (0); } */ } /** Standard Constructor */ public X_I_ReportLine (Properties ctx, int I_ReportLine_ID, String trxName, String ... virtualColumns) { super (ctx, I_ReportLine_ID, trxName, virtualColumns); /** if (I_ReportLine_ID == 0) { setI_IsImported (false); setI_ReportLine_ID (0); } */ } /** Standard Constructor */ public X_I_ReportLine (Properties ctx, String I_ReportLine_UU, String trxName) { super (ctx, I_ReportLine_UU, trxName); /** if (I_ReportLine_UU == null) { setI_IsImported (false); setI_ReportLine_ID (0); } */ } /** Standard Constructor */ public X_I_ReportLine (Properties ctx, String I_ReportLine_UU, String trxName, String ... virtualColumns) { super (ctx, I_ReportLine_UU, trxName, virtualColumns); /** if (I_ReportLine_UU == null) { setI_IsImported (false); setI_ReportLine_ID (0); } */ } /** Load Constructor */ public X_I_ReportLine (Properties ctx, ResultSet rs, String trxName) { super (ctx, rs, trxName); } /** AccessLevel * @return 6 - System - Client */ 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_I_ReportLine[") .append(get_ID()).append(",Name=").append(getName()).append("]"); return sb.toString(); } /** CalculationType AD_Reference_ID=236 */ public static final int CALCULATIONTYPE_AD_Reference_ID=236; /** Add (Op1+Op2) = A */ public static final String CALCULATIONTYPE_AddOp1PlusOp2 = "A"; /** Percentage (Op1 of Op2) = P */ public static final String CALCULATIONTYPE_PercentageOp1OfOp2 = "P"; /** Add Range (Op1 to Op2) = R */ public static final String CALCULATIONTYPE_AddRangeOp1ToOp2 = "R"; /** Subtract (Op1-Op2) = S */ public static final String CALCULATIONTYPE_SubtractOp1_Op2 = "S"; /** Set Calculation. @param CalculationType Calculation */ public void setCalculationType (String CalculationType) { set_Value (COLUMNNAME_CalculationType, CalculationType); } /** Get Calculation. @return Calculation */ public String getCalculationType() { return (String)get_Value(COLUMNNAME_CalculationType); } public org.compiere.model.I_C_ElementValue getC_ElementValue() throws RuntimeException { return (org.compiere.model.I_C_ElementValue)MTable.get(getCtx(), org.compiere.model.I_C_ElementValue.Table_ID) .getPO(getC_ElementValue_ID(), get_TrxName()); } /** Set Account Element. @param C_ElementValue_ID Account Element */ public void setC_ElementValue_ID (int C_ElementValue_ID) { if (C_ElementValue_ID < 1) set_Value (COLUMNNAME_C_ElementValue_ID, null); else set_Value (COLUMNNAME_C_ElementValue_ID, Integer.valueOf(C_ElementValue_ID)); } /** Get Account Element. @return Account Element */ public int getC_ElementValue_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_C_ElementValue_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Description. @param Description Optional short description of the record */ public void setDescription (String Description) { set_Value (COLUMNNAME_Description, Description); } /** Get Description. @return Optional short description of the record */ public String getDescription() { return (String)get_Value(COLUMNNAME_Description); } /** Set Element Key. @param ElementValue Key of the element */ public void setElementValue (String ElementValue) { set_Value (COLUMNNAME_ElementValue, ElementValue); } /** Get Element Key. @return Key of the element */ public String getElementValue() { return (String)get_Value(COLUMNNAME_ElementValue); } /** Set Import Error Message. @param I_ErrorMsg Messages generated from import process */ public void setI_ErrorMsg (String I_ErrorMsg) { set_Value (COLUMNNAME_I_ErrorMsg, I_ErrorMsg); } /** Get Import Error Message. @return Messages generated from import process */ public String getI_ErrorMsg() { return (String)get_Value(COLUMNNAME_I_ErrorMsg); } /** Set Imported. @param I_IsImported Has this import been processed */ public void setI_IsImported (boolean I_IsImported) { set_Value (COLUMNNAME_I_IsImported, Boolean.valueOf(I_IsImported)); } /** Get Imported. @return Has this import been processed */ public boolean isI_IsImported() { Object oo = get_Value(COLUMNNAME_I_IsImported); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Import Report Line Set. @param I_ReportLine_ID Import Report Line Set values */ public void setI_ReportLine_ID (int I_ReportLine_ID) { if (I_ReportLine_ID < 1) set_ValueNoCheck (COLUMNNAME_I_ReportLine_ID, null); else set_ValueNoCheck (COLUMNNAME_I_ReportLine_ID, Integer.valueOf(I_ReportLine_ID)); } /** Get Import Report Line Set. @return Import Report Line Set values */ public int getI_ReportLine_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_I_ReportLine_ID); if (ii == null) return 0; return ii.intValue(); } /** Set I_ReportLine_UU. @param I_ReportLine_UU I_ReportLine_UU */ public void setI_ReportLine_UU (String I_ReportLine_UU) { set_Value (COLUMNNAME_I_ReportLine_UU, I_ReportLine_UU); } /** Get I_ReportLine_UU. @return I_ReportLine_UU */ public String getI_ReportLine_UU() { return (String)get_Value(COLUMNNAME_I_ReportLine_UU); } /** Set Printed. @param IsPrinted Indicates if this document / line is printed */ public void setIsPrinted (boolean IsPrinted) { set_Value (COLUMNNAME_IsPrinted, Boolean.valueOf(IsPrinted)); } /** Get Printed. @return Indicates if this document / line is printed */ public boolean isPrinted() { Object oo = get_Value(COLUMNNAME_IsPrinted); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Summary Level. @param IsSummary This is a summary entity */ public void setIsSummary (boolean IsSummary) { set_Value (COLUMNNAME_IsSummary, Boolean.valueOf(IsSummary)); } /** Get Summary Level. @return This is a summary entity */ public boolean isSummary() { Object oo = get_Value(COLUMNNAME_IsSummary); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** LineType AD_Reference_ID=241 */ public static final int LINETYPE_AD_Reference_ID=241; /** Blank line = B */ public static final String LINETYPE_BlankLine = "B"; /** Calculation = C */ public static final String LINETYPE_Calculation = "C"; /** Segment Value = S */ public static final String LINETYPE_SegmentValue = "S"; /** Set Line Type. @param LineType Line Type */ public void setLineType (String LineType) { set_Value (COLUMNNAME_LineType, LineType); } /** Get Line Type. @return Line Type */ public String getLineType() { return (String)get_Value(COLUMNNAME_LineType); } /** Set Name. @param Name Alphanumeric identifier of the entity */ public void setName (String Name) { set_Value (COLUMNNAME_Name, Name); } /** Get Name. @return Alphanumeric identifier of the entity */ public String getName() { return (String)get_Value(COLUMNNAME_Name); } /** Get Record ID/ColumnName @return ID/ColumnName pair */ public KeyNamePair getKeyNamePair() { return new KeyNamePair(get_ID(), getName()); } /** PAAmountType AD_Reference_ID=53328 */ public static final int PAAMOUNTTYPE_AD_Reference_ID=53328; /** Balance (expected sign) = B */ public static final String PAAMOUNTTYPE_BalanceExpectedSign = "B"; /** Credit Only = C */ public static final String PAAMOUNTTYPE_CreditOnly = "C"; /** Debit Only = D */ public static final String PAAMOUNTTYPE_DebitOnly = "D"; /** Quantity (expected sign) = Q */ public static final String PAAMOUNTTYPE_QuantityExpectedSign = "Q"; /** Quantity (accounted sign) = R */ public static final String PAAMOUNTTYPE_QuantityAccountedSign = "R"; /** Balance (accounted sign) = S */ public static final String PAAMOUNTTYPE_BalanceAccountedSign = "S"; /** Set Amount Type. @param PAAmountType PA Amount Type for reporting */ public void setPAAmountType (String PAAmountType) { set_Value (COLUMNNAME_PAAmountType, PAAmountType); } /** Get Amount Type. @return PA Amount Type for reporting */ public String getPAAmountType() { return (String)get_Value(COLUMNNAME_PAAmountType); } /** PAPeriodType AD_Reference_ID=53327 */ public static final int PAPERIODTYPE_AD_Reference_ID=53327; /** Natural = N */ public static final String PAPERIODTYPE_Natural = "N"; /** Period = P */ public static final String PAPERIODTYPE_Period = "P"; /** Total = T */ public static final String PAPERIODTYPE_Total = "T"; /** Year = Y */ public static final String PAPERIODTYPE_Year = "Y"; /** Set Period Type. @param PAPeriodType PA Period Type */ public void setPAPeriodType (String PAPeriodType) { set_Value (COLUMNNAME_PAPeriodType, PAPeriodType); } /** Get Period Type. @return PA Period Type */ public String getPAPeriodType() { return (String)get_Value(COLUMNNAME_PAPeriodType); } 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_Value (COLUMNNAME_PA_ReportLine_ID, null); else set_Value (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(); } public org.compiere.model.I_PA_ReportLineSet getPA_ReportLineSet() throws RuntimeException { return (org.compiere.model.I_PA_ReportLineSet)MTable.get(getCtx(), org.compiere.model.I_PA_ReportLineSet.Table_ID) .getPO(getPA_ReportLineSet_ID(), get_TrxName()); } /** Set Report Line Set. @param PA_ReportLineSet_ID Report Line Set */ public void setPA_ReportLineSet_ID (int PA_ReportLineSet_ID) { if (PA_ReportLineSet_ID < 1) set_Value (COLUMNNAME_PA_ReportLineSet_ID, null); else set_Value (COLUMNNAME_PA_ReportLineSet_ID, Integer.valueOf(PA_ReportLineSet_ID)); } /** Get Report Line Set. @return Report Line Set */ public int getPA_ReportLineSet_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_PA_ReportLineSet_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_PA_ReportSource getPA_ReportSource() throws RuntimeException { return (org.compiere.model.I_PA_ReportSource)MTable.get(getCtx(), org.compiere.model.I_PA_ReportSource.Table_ID) .getPO(getPA_ReportSource_ID(), get_TrxName()); } /** Set Report Source. @param PA_ReportSource_ID Restriction of what will be shown in Report Line */ public void setPA_ReportSource_ID (int PA_ReportSource_ID) { if (PA_ReportSource_ID < 1) set_Value (COLUMNNAME_PA_ReportSource_ID, null); else set_Value (COLUMNNAME_PA_ReportSource_ID, Integer.valueOf(PA_ReportSource_ID)); } /** Get Report Source. @return Restriction of what will be shown in Report Line */ public int getPA_ReportSource_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_PA_ReportSource_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"; /** Reservation = R */ public static final String POSTINGTYPE_Reservation = "R"; /** Statistical = S */ public static final String POSTINGTYPE_Statistical = "S"; /** Set Posting Type. @param PostingType The type of posted amount for the transaction */ public void setPostingType (String PostingType) { set_Value (COLUMNNAME_PostingType, PostingType); } /** Get Posting Type. @return The type of posted amount for the transaction */ public String getPostingType() { return (String)get_Value(COLUMNNAME_PostingType); } /** 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 Process Now. @param Processing Process Now */ public void setProcessing (boolean Processing) { set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); } /** Get Process Now. @return Process Now */ public boolean isProcessing() { Object oo = get_Value(COLUMNNAME_Processing); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Report Line Set Name. @param ReportLineSetName Name of the Report Line Set */ public void setReportLineSetName (String ReportLineSetName) { set_Value (COLUMNNAME_ReportLineSetName, ReportLineSetName); } /** Get Report Line Set Name. @return Name of the Report Line Set */ public String getReportLineSetName() { return (String)get_Value(COLUMNNAME_ReportLineSetName); } /** Set Sequence. @param SeqNo Method of ordering records; lowest number comes first */ public void setSeqNo (int SeqNo) { set_Value (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(); } }