KickJava   Java API By Example, From Geeks To Geeks.

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


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_Report
9  ** @version $Id: X_PA_Report.java,v 1.26 2003/10/31 05:30:53 jjanke Exp $ **/

10 public class X_PA_Report extends PO
11 {
12 /** Standard Constructor **/
13 public X_PA_Report (Properties ctx, int PA_Report_ID)
14 {
15 super (ctx, PA_Report_ID);
16 /** if (PA_Report_ID == 0)
17 {
18 setC_AcctSchema_ID (0);
19 setC_Calendar_ID (0);
20 setListSources (false);
21 setListTrx (false);
22 setName (null);
23 setPA_ReportColumnSet_ID (0);
24 setPA_ReportLineSet_ID (0);
25 setPA_Report_ID (0);
26 setProcessing (null);
27 }
28  **/

29 }
30 /** Load Constructor **/
31 public X_PA_Report (Properties ctx, ResultSet rs)
32 {
33 super (ctx, rs);
34 }
35 /** Load Meta Data **/
36 protected POInfo initPO (Properties ctx)
37 {
38 int AD_Table_ID = 445;
39 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
40 return poi;
41 }
42 public String JavaDoc toString()
43 {
44 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_PA_Report[").append(getID()).append("]");
45 return sb.toString();
46 }
47 public void setAD_PrintFormat_ID (int AD_PrintFormat_ID)
48 {
49 if (AD_PrintFormat_ID == 0) setValue ("AD_PrintFormat_ID", null);
50  else
51 setValue ("AD_PrintFormat_ID", new Integer JavaDoc(AD_PrintFormat_ID));
52 }
53 public int getAD_PrintFormat_ID()
54 {
55 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_PrintFormat_ID");
56 if (ii == null) return 0;
57 return ii.intValue();
58 }
59 public void setC_AcctSchema_ID (int C_AcctSchema_ID)
60 {
61 setValue ("C_AcctSchema_ID", new Integer JavaDoc(C_AcctSchema_ID));
62 }
63 public int getC_AcctSchema_ID()
64 {
65 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_AcctSchema_ID");
66 if (ii == null) return 0;
67 return ii.intValue();
68 }
69 public void setC_Calendar_ID (int C_Calendar_ID)
70 {
71 setValue ("C_Calendar_ID", new Integer JavaDoc(C_Calendar_ID));
72 }
73 public int getC_Calendar_ID()
74 {
75 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Calendar_ID");
76 if (ii == null) return 0;
77 return ii.intValue();
78 }
79 public void setDescription (String JavaDoc Description)
80 {
81 setValue ("Description", Description);
82 }
83 public String JavaDoc getDescription()
84 {
85 return (String JavaDoc)getValue("Description");
86 }
87 public void setListSources (boolean ListSources)
88 {
89 setValue ("ListSources", new Boolean JavaDoc(ListSources));
90 }
91 public boolean isListSources()
92 {
93 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("ListSources");
94 if (bb != null) return bb.booleanValue();
95 return false;
96 }
97 public void setListTrx (boolean ListTrx)
98 {
99 setValue ("ListTrx", new Boolean JavaDoc(ListTrx));
100 }
101 public boolean isListTrx()
102 {
103 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("ListTrx");
104 if (bb != null) return bb.booleanValue();
105 return false;
106 }
107 public void setName (String JavaDoc Name)
108 {
109 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
110 setValue ("Name", Name);
111 }
112 public String JavaDoc getName()
113 {
114 return (String JavaDoc)getValue("Name");
115 }
116 public void setPA_ReportColumnSet_ID (int PA_ReportColumnSet_ID)
117 {
118 setValue ("PA_ReportColumnSet_ID", new Integer JavaDoc(PA_ReportColumnSet_ID));
119 }
120 public int getPA_ReportColumnSet_ID()
121 {
122 Integer JavaDoc ii = (Integer JavaDoc)getValue("PA_ReportColumnSet_ID");
123 if (ii == null) return 0;
124 return ii.intValue();
125 }
126 public void setPA_ReportLineSet_ID (int PA_ReportLineSet_ID)
127 {
128 setValue ("PA_ReportLineSet_ID", new Integer JavaDoc(PA_ReportLineSet_ID));
129 }
130 public int getPA_ReportLineSet_ID()
131 {
132 Integer JavaDoc ii = (Integer JavaDoc)getValue("PA_ReportLineSet_ID");
133 if (ii == null) return 0;
134 return ii.intValue();
135 }
136 void setPA_Report_ID (int PA_Report_ID)
137 {
138 setValueNoCheck ("PA_Report_ID", new Integer JavaDoc(PA_Report_ID));
139 }
140 public int getPA_Report_ID()
141 {
142 Integer JavaDoc ii = (Integer JavaDoc)getValue("PA_Report_ID");
143 if (ii == null) return 0;
144 return ii.intValue();
145 }
146 public void setProcessing (String JavaDoc Processing)
147 {
148 if (Processing == null) throw new IllegalArgumentException JavaDoc ("Processing is mandatory");
149 setValue ("Processing", Processing);
150 }
151 public String JavaDoc getProcessing()
152 {
153 return (String JavaDoc)getValue("Processing");
154 }
155 }
156
Popular Tags