KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > compiere > model > X_PA_ReportLine


1 /** Generated Model - DO NOT CHANGE - Copyright (C) 1999-2003 Jorg Janke **/
2 package org.compiere.model;
3 import java.util.*;
4 import java.sql.*;
5 import java.math.*;
6 import java.io.Serializable JavaDoc;
7 import org.compiere.util.*;
8 /** Generated Model for PA_ReportLine
9  ** @version $Id: X_PA_ReportLine.java,v 1.26 2003/10/31 05:30:53 jjanke Exp $ **/

10 public class X_PA_ReportLine extends PO
11 {
12 /** Standard Constructor **/
13 public X_PA_ReportLine (Properties ctx, int PA_ReportLine_ID)
14 {
15 super (ctx, PA_ReportLine_ID);
16 /** if (PA_ReportLine_ID == 0)
17 {
18 setIsPrinted (false);
19 setIsSummary (false);
20 setLineType (null);
21 setName (null);
22 setPA_ReportLineSet_ID (0);
23 setPA_ReportLine_ID (0);
24 setSeqNo (0);
25 }
26  **/

27 }
28 /** Load Constructor **/
29 public X_PA_ReportLine (Properties ctx, ResultSet rs)
30 {
31 super (ctx, rs);
32 }
33 /** Load Meta Data **/
34 protected POInfo initPO (Properties ctx)
35 {
36 int AD_Table_ID = 448;
37 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
38 return poi;
39 }
40 public String JavaDoc toString()
41 {
42 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_PA_ReportLine[").append(getID()).append("]");
43 return sb.toString();
44 }
45 public static final String JavaDoc AMOUNTTYPE_TotalDebitOnly = "DT";
46 public static final String JavaDoc AMOUNTTYPE_TotalCreditOnly = "CT";
47 public static final String JavaDoc AMOUNTTYPE_TotalBalance = "BT";
48 public static final String JavaDoc AMOUNTTYPE_PeriodBalance = "BP";
49 public static final String JavaDoc AMOUNTTYPE_PeriodCreditOnly = "CP";
50 public static final String JavaDoc AMOUNTTYPE_PeriodDebitOnly = "DP";
51 public static final String JavaDoc AMOUNTTYPE_PeriodQuantity = "QP";
52 public static final String JavaDoc AMOUNTTYPE_TotalQuantity = "QT";
53 public static final String JavaDoc AMOUNTTYPE_YearBalance = "BY";
54 public static final String JavaDoc AMOUNTTYPE_YearCreditOnly = "CY";
55 public static final String JavaDoc AMOUNTTYPE_YearDebitOnly = "DY";
56 public static final String JavaDoc AMOUNTTYPE_YearQuantity = "QY";
57 public void setAmountType (String JavaDoc AmountType)
58 {
59 if (AmountType.equals("DT") || AmountType.equals("CT") || AmountType.equals("BT") || AmountType.equals("BP") || AmountType.equals("CP") || AmountType.equals("DP") || AmountType.equals("QP") || AmountType.equals("QT") || AmountType.equals("BY") || AmountType.equals("CY") || AmountType.equals("DY") || AmountType.equals("QY"));
60  else throw new IllegalArgumentException JavaDoc ("AmountType Invalid value - Reference_ID=235 - DT - CT - BT - BP - CP - DP - QP - QT - BY - CY - DY - QY");
61 setValue ("AmountType", AmountType);
62 }
63 public String JavaDoc getAmountType()
64 {
65 return (String JavaDoc)getValue("AmountType");
66 }
67 public static final String JavaDoc CALCULATIONTYPE_AddOp1PlusOp2 = "A";
68 public static final String JavaDoc CALCULATIONTYPE_SubtractOp1MinusOp2 = "S";
69 public static final String JavaDoc CALCULATIONTYPE_PercentageOp2OfOp1 = "P";
70 public static final String JavaDoc CALCULATIONTYPE_AddRangeOp1ToOp2 = "R";
71 public void setCalculationType (String JavaDoc CalculationType)
72 {
73 if (CalculationType.equals("A") || CalculationType.equals("S") || CalculationType.equals("P") || CalculationType.equals("R"));
74  else throw new IllegalArgumentException JavaDoc ("CalculationType Invalid value - Reference_ID=236 - A - S - P - R");
75 setValue ("CalculationType", CalculationType);
76 }
77 public String JavaDoc getCalculationType()
78 {
79 return (String JavaDoc)getValue("CalculationType");
80 }
81 public void setDescription (String JavaDoc Description)
82 {
83 setValue ("Description", Description);
84 }
85 public String JavaDoc getDescription()
86 {
87 return (String JavaDoc)getValue("Description");
88 }
89 public void setGL_Budget_ID (int GL_Budget_ID)
90 {
91 if (GL_Budget_ID == 0) setValue ("GL_Budget_ID", null);
92  else
93 setValue ("GL_Budget_ID", new Integer JavaDoc(GL_Budget_ID));
94 }
95 public int getGL_Budget_ID()
96 {
97 Integer JavaDoc ii = (Integer JavaDoc)getValue("GL_Budget_ID");
98 if (ii == null) return 0;
99 return ii.intValue();
100 }
101 public void setIsPrinted (boolean IsPrinted)
102 {
103 setValue ("IsPrinted", new Boolean JavaDoc(IsPrinted));
104 }
105 public boolean isPrinted()
106 {
107 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsPrinted");
108 if (bb != null) return bb.booleanValue();
109 return false;
110 }
111 public void setIsSummary (boolean IsSummary)
112 {
113 setValue ("IsSummary", new Boolean JavaDoc(IsSummary));
114 }
115 public boolean isSummary()
116 {
117 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsSummary");
118 if (bb != null) return bb.booleanValue();
119 return false;
120 }
121 public static final String JavaDoc LINETYPE_SegmentValue = "S";
122 public static final String JavaDoc LINETYPE_Calculation = "C";
123 public void setLineType (String JavaDoc LineType)
124 {
125 if (LineType.equals("S") || LineType.equals("C"));
126  else throw new IllegalArgumentException JavaDoc ("LineType Invalid value - Reference_ID=241 - S - C");
127 if (LineType == null) throw new IllegalArgumentException JavaDoc ("LineType is mandatory");
128 setValue ("LineType", LineType);
129 }
130 public String JavaDoc getLineType()
131 {
132 return (String JavaDoc)getValue("LineType");
133 }
134 public void setName (String JavaDoc Name)
135 {
136 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
137 setValue ("Name", Name);
138 }
139 public String JavaDoc getName()
140 {
141 return (String JavaDoc)getValue("Name");
142 }
143 public void setOper_1_ID (int Oper_1_ID)
144 {
145 if (Oper_1_ID == 0) setValue ("Oper_1_ID", null);
146  else
147 setValue ("Oper_1_ID", new Integer JavaDoc(Oper_1_ID));
148 }
149 public int getOper_1_ID()
150 {
151 Integer JavaDoc ii = (Integer JavaDoc)getValue("Oper_1_ID");
152 if (ii == null) return 0;
153 return ii.intValue();
154 }
155 public void setOper_2_ID (int Oper_2_ID)
156 {
157 if (Oper_2_ID == 0) setValue ("Oper_2_ID", null);
158  else
159 setValue ("Oper_2_ID", new Integer JavaDoc(Oper_2_ID));
160 }
161 public int getOper_2_ID()
162 {
163 Integer JavaDoc ii = (Integer JavaDoc)getValue("Oper_2_ID");
164 if (ii == null) return 0;
165 return ii.intValue();
166 }
167 void setPA_ReportLineSet_ID (int PA_ReportLineSet_ID)
168 {
169 setValueNoCheck ("PA_ReportLineSet_ID", new Integer JavaDoc(PA_ReportLineSet_ID));
170 }
171 public int getPA_ReportLineSet_ID()
172 {
173 Integer JavaDoc ii = (Integer JavaDoc)getValue("PA_ReportLineSet_ID");
174 if (ii == null) return 0;
175 return ii.intValue();
176 }
177 void setPA_ReportLine_ID (int PA_ReportLine_ID)
178 {
179 setValueNoCheck ("PA_ReportLine_ID", new Integer JavaDoc(PA_ReportLine_ID));
180 }
181 public int getPA_ReportLine_ID()
182 {
183 Integer JavaDoc ii = (Integer JavaDoc)getValue("PA_ReportLine_ID");
184 if (ii == null) return 0;
185 return ii.intValue();
186 }
187 public void setParent_ID (int Parent_ID)
188 {
189 if (Parent_ID == 0) setValue ("Parent_ID", null);
190  else
191 setValue ("Parent_ID", new Integer JavaDoc(Parent_ID));
192 }
193 public int getParent_ID()
194 {
195 Integer JavaDoc ii = (Integer JavaDoc)getValue("Parent_ID");
196 if (ii == null) return 0;
197 return ii.intValue();
198 }
199 public static final String JavaDoc POSTINGTYPE_Actual = "A";
200 public static final String JavaDoc POSTINGTYPE_Budget = "B";
201 public static final String JavaDoc POSTINGTYPE_Encumbrance = "E";
202 public static final String JavaDoc POSTINGTYPE_Statistical = "S";
203 public void setPostingType (String JavaDoc PostingType)
204 {
205 if (PostingType.equals("A") || PostingType.equals("B") || PostingType.equals("E") || PostingType.equals("S"));
206  else throw new IllegalArgumentException JavaDoc ("PostingType Invalid value - Reference_ID=125 - A - B - E - S");
207 setValue ("PostingType", PostingType);
208 }
209 public String JavaDoc getPostingType()
210 {
211 return (String JavaDoc)getValue("PostingType");
212 }
213 public void setSeqNo (int SeqNo)
214 {
215 setValue ("SeqNo", new Integer JavaDoc(SeqNo));
216 }
217 public int getSeqNo()
218 {
219 Integer JavaDoc ii = (Integer JavaDoc)getValue("SeqNo");
220 if (ii == null) return 0;
221 return ii.intValue();
222 }
223 }
224
Free Books   Free Magazines  
Popular Tags