KickJava   Java API By Example, From Geeks To Geeks.

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


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 AD_PrintForm
9  ** @version $Id: X_AD_PrintForm.java,v 1.27 2003/10/31 05:30:52 jjanke Exp $ **/

10 public class X_AD_PrintForm extends PO
11 {
12 /** Standard Constructor **/
13 public X_AD_PrintForm (Properties ctx, int AD_PrintForm_ID)
14 {
15 super (ctx, AD_PrintForm_ID);
16 /** if (AD_PrintForm_ID == 0)
17 {
18 setAD_PrintForm_ID (0);
19 setName (null);
20 }
21  **/

22 }
23 /** Load Constructor **/
24 public X_AD_PrintForm (Properties ctx, ResultSet rs)
25 {
26 super (ctx, rs);
27 }
28 /** Load Meta Data **/
29 protected POInfo initPO (Properties ctx)
30 {
31 int AD_Table_ID = 454;
32 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
33 return poi;
34 }
35 public String JavaDoc toString()
36 {
37 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_AD_PrintForm[").append(getID()).append("]");
38 return sb.toString();
39 }
40 void setAD_PrintForm_ID (int AD_PrintForm_ID)
41 {
42 setValueNoCheck ("AD_PrintForm_ID", new Integer JavaDoc(AD_PrintForm_ID));
43 }
44 public int getAD_PrintForm_ID()
45 {
46 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_PrintForm_ID");
47 if (ii == null) return 0;
48 return ii.intValue();
49 }
50 public void setDescription (String JavaDoc Description)
51 {
52 setValue ("Description", Description);
53 }
54 public String JavaDoc getDescription()
55 {
56 return (String JavaDoc)getValue("Description");
57 }
58 public void setInvoice_MailText_ID (int Invoice_MailText_ID)
59 {
60 if (Invoice_MailText_ID == 0) setValue ("Invoice_MailText_ID", null);
61  else
62 setValue ("Invoice_MailText_ID", new Integer JavaDoc(Invoice_MailText_ID));
63 }
64 public int getInvoice_MailText_ID()
65 {
66 Integer JavaDoc ii = (Integer JavaDoc)getValue("Invoice_MailText_ID");
67 if (ii == null) return 0;
68 return ii.intValue();
69 }
70 public void setInvoice_PrintFormat_ID (int Invoice_PrintFormat_ID)
71 {
72 if (Invoice_PrintFormat_ID == 0) setValue ("Invoice_PrintFormat_ID", null);
73  else
74 setValue ("Invoice_PrintFormat_ID", new Integer JavaDoc(Invoice_PrintFormat_ID));
75 }
76 public int getInvoice_PrintFormat_ID()
77 {
78 Integer JavaDoc ii = (Integer JavaDoc)getValue("Invoice_PrintFormat_ID");
79 if (ii == null) return 0;
80 return ii.intValue();
81 }
82 public void setName (String JavaDoc Name)
83 {
84 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
85 setValue ("Name", Name);
86 }
87 public String JavaDoc getName()
88 {
89 return (String JavaDoc)getValue("Name");
90 }
91 public void setOrder_MailText_ID (int Order_MailText_ID)
92 {
93 if (Order_MailText_ID == 0) setValue ("Order_MailText_ID", null);
94  else
95 setValue ("Order_MailText_ID", new Integer JavaDoc(Order_MailText_ID));
96 }
97 public int getOrder_MailText_ID()
98 {
99 Integer JavaDoc ii = (Integer JavaDoc)getValue("Order_MailText_ID");
100 if (ii == null) return 0;
101 return ii.intValue();
102 }
103 public void setOrder_PrintFormat_ID (int Order_PrintFormat_ID)
104 {
105 if (Order_PrintFormat_ID == 0) setValue ("Order_PrintFormat_ID", null);
106  else
107 setValue ("Order_PrintFormat_ID", new Integer JavaDoc(Order_PrintFormat_ID));
108 }
109 public int getOrder_PrintFormat_ID()
110 {
111 Integer JavaDoc ii = (Integer JavaDoc)getValue("Order_PrintFormat_ID");
112 if (ii == null) return 0;
113 return ii.intValue();
114 }
115 public void setProject_MailText_ID (int Project_MailText_ID)
116 {
117 if (Project_MailText_ID == 0) setValue ("Project_MailText_ID", null);
118  else
119 setValue ("Project_MailText_ID", new Integer JavaDoc(Project_MailText_ID));
120 }
121 public int getProject_MailText_ID()
122 {
123 Integer JavaDoc ii = (Integer JavaDoc)getValue("Project_MailText_ID");
124 if (ii == null) return 0;
125 return ii.intValue();
126 }
127 public void setProject_PrintFormat_ID (int Project_PrintFormat_ID)
128 {
129 if (Project_PrintFormat_ID == 0) setValue ("Project_PrintFormat_ID", null);
130  else
131 setValue ("Project_PrintFormat_ID", new Integer JavaDoc(Project_PrintFormat_ID));
132 }
133 public int getProject_PrintFormat_ID()
134 {
135 Integer JavaDoc ii = (Integer JavaDoc)getValue("Project_PrintFormat_ID");
136 if (ii == null) return 0;
137 return ii.intValue();
138 }
139 public void setRemittance_MailText_ID (int Remittance_MailText_ID)
140 {
141 if (Remittance_MailText_ID == 0) setValue ("Remittance_MailText_ID", null);
142  else
143 setValue ("Remittance_MailText_ID", new Integer JavaDoc(Remittance_MailText_ID));
144 }
145 public int getRemittance_MailText_ID()
146 {
147 Integer JavaDoc ii = (Integer JavaDoc)getValue("Remittance_MailText_ID");
148 if (ii == null) return 0;
149 return ii.intValue();
150 }
151 public void setRemittance_PrintFormat_ID (int Remittance_PrintFormat_ID)
152 {
153 if (Remittance_PrintFormat_ID == 0) setValue ("Remittance_PrintFormat_ID", null);
154  else
155 setValue ("Remittance_PrintFormat_ID", new Integer JavaDoc(Remittance_PrintFormat_ID));
156 }
157 public int getRemittance_PrintFormat_ID()
158 {
159 Integer JavaDoc ii = (Integer JavaDoc)getValue("Remittance_PrintFormat_ID");
160 if (ii == null) return 0;
161 return ii.intValue();
162 }
163 public void setShipment_MailText_ID (int Shipment_MailText_ID)
164 {
165 if (Shipment_MailText_ID == 0) setValue ("Shipment_MailText_ID", null);
166  else
167 setValue ("Shipment_MailText_ID", new Integer JavaDoc(Shipment_MailText_ID));
168 }
169 public int getShipment_MailText_ID()
170 {
171 Integer JavaDoc ii = (Integer JavaDoc)getValue("Shipment_MailText_ID");
172 if (ii == null) return 0;
173 return ii.intValue();
174 }
175 public void setShipment_PrintFormat_ID (int Shipment_PrintFormat_ID)
176 {
177 if (Shipment_PrintFormat_ID == 0) setValue ("Shipment_PrintFormat_ID", null);
178  else
179 setValue ("Shipment_PrintFormat_ID", new Integer JavaDoc(Shipment_PrintFormat_ID));
180 }
181 public int getShipment_PrintFormat_ID()
182 {
183 Integer JavaDoc ii = (Integer JavaDoc)getValue("Shipment_PrintFormat_ID");
184 if (ii == null) return 0;
185 return ii.intValue();
186 }
187 }
188
Popular Tags