KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_M_EDI extends PO
11 {
12 /** Standard Constructor **/
13 public X_M_EDI (Properties ctx, int M_EDI_ID)
14 {
15 super (ctx, M_EDI_ID);
16 /** if (M_EDI_ID == 0)
17 {
18 setC_BP_EDI_ID (0);
19 setDocumentNo (null);
20 setEDIStatus (null);
21 setLine (0);
22 setM_EDI_ID (0);
23 setM_Product_ID (0);
24 setM_Warehouse_ID (0);
25 setProcessed (false);
26 setRequest_Qty (Env.ZERO);
27 setRequest_Shipdate (new Timestamp(System.currentTimeMillis()));
28 setTrxSent (new Timestamp(System.currentTimeMillis()));
29 setTrxType (null);
30 }
31  **/

32 }
33 /** Load Constructor **/
34 public X_M_EDI (Properties ctx, ResultSet rs)
35 {
36 super (ctx, rs);
37 }
38 /** Load Meta Data **/
39 protected POInfo initPO (Properties ctx)
40 {
41 int AD_Table_ID = 367;
42 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
43 return poi;
44 }
45 public String JavaDoc toString()
46 {
47 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_M_EDI[").append(getID()).append("]");
48 return sb.toString();
49 }
50 public void setC_BP_EDI_ID (int C_BP_EDI_ID)
51 {
52 setValue ("C_BP_EDI_ID", new Integer JavaDoc(C_BP_EDI_ID));
53 }
54 public int getC_BP_EDI_ID()
55 {
56 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_BP_EDI_ID");
57 if (ii == null) return 0;
58 return ii.intValue();
59 }
60 public void setDocumentNo (String JavaDoc DocumentNo)
61 {
62 if (DocumentNo == null) throw new IllegalArgumentException JavaDoc ("DocumentNo is mandatory");
63 setValue ("DocumentNo", DocumentNo);
64 }
65 public String JavaDoc getDocumentNo()
66 {
67 return (String JavaDoc)getValue("DocumentNo");
68 }
69 public static final String JavaDoc EDISTATUS_Draft = "D";
70 public static final String JavaDoc EDISTATUS_Sent = "S";
71 public static final String JavaDoc EDISTATUS_Acknowledged = "A";
72 public static final String JavaDoc EDISTATUS_AnsweredComplete = "C";
73 void setEDIStatus (String JavaDoc EDIStatus)
74 {
75 if (EDIStatus.equals("D") || EDIStatus.equals("S") || EDIStatus.equals("A") || EDIStatus.equals("C"));
76  else throw new IllegalArgumentException JavaDoc ("EDIStatus Invalid value - Reference_ID=202 - D - S - A - C");
77 if (EDIStatus == null) throw new IllegalArgumentException JavaDoc ("EDIStatus is mandatory");
78 setValueNoCheck ("EDIStatus", EDIStatus);
79 }
80 public String JavaDoc getEDIStatus()
81 {
82 return (String JavaDoc)getValue("EDIStatus");
83 }
84 public void setLine (int Line)
85 {
86 setValue ("Line", new Integer JavaDoc(Line));
87 }
88 public int getLine()
89 {
90 Integer JavaDoc ii = (Integer JavaDoc)getValue("Line");
91 if (ii == null) return 0;
92 return ii.intValue();
93 }
94 void setM_EDI_ID (int M_EDI_ID)
95 {
96 setValueNoCheck ("M_EDI_ID", new Integer JavaDoc(M_EDI_ID));
97 }
98 public int getM_EDI_ID()
99 {
100 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_EDI_ID");
101 if (ii == null) return 0;
102 return ii.intValue();
103 }
104 public void setM_Product_ID (int M_Product_ID)
105 {
106 setValue ("M_Product_ID", new Integer JavaDoc(M_Product_ID));
107 }
108 public int getM_Product_ID()
109 {
110 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_Product_ID");
111 if (ii == null) return 0;
112 return ii.intValue();
113 }
114 public void setM_Warehouse_ID (int M_Warehouse_ID)
115 {
116 setValue ("M_Warehouse_ID", new Integer JavaDoc(M_Warehouse_ID));
117 }
118 public int getM_Warehouse_ID()
119 {
120 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_Warehouse_ID");
121 if (ii == null) return 0;
122 return ii.intValue();
123 }
124 public void setProcessed (boolean Processed)
125 {
126 setValue ("Processed", new Boolean JavaDoc(Processed));
127 }
128 public boolean isProcessed()
129 {
130 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("Processed");
131 if (bb != null) return bb.booleanValue();
132 return false;
133 }
134 public void setReply_Price (BigDecimal Reply_Price)
135 {
136 setValue ("Reply_Price", Reply_Price);
137 }
138 public BigDecimal getReply_Price()
139 {
140 BigDecimal bd = (BigDecimal)getValue("Reply_Price");
141 if (bd == null) return Env.ZERO;
142 return bd;
143 }
144 public void setReply_QtyAvailable (BigDecimal Reply_QtyAvailable)
145 {
146 setValue ("Reply_QtyAvailable", Reply_QtyAvailable);
147 }
148 public BigDecimal getReply_QtyAvailable()
149 {
150 BigDecimal bd = (BigDecimal)getValue("Reply_QtyAvailable");
151 if (bd == null) return Env.ZERO;
152 return bd;
153 }
154 public void setReply_QtyConfirmed (BigDecimal Reply_QtyConfirmed)
155 {
156 setValue ("Reply_QtyConfirmed", Reply_QtyConfirmed);
157 }
158 public BigDecimal getReply_QtyConfirmed()
159 {
160 BigDecimal bd = (BigDecimal)getValue("Reply_QtyConfirmed");
161 if (bd == null) return Env.ZERO;
162 return bd;
163 }
164 public void setReply_Received (Timestamp Reply_Received)
165 {
166 setValue ("Reply_Received", Reply_Received);
167 }
168 public Timestamp getReply_Received()
169 {
170 return (Timestamp)getValue("Reply_Received");
171 }
172 public void setReply_Remarks (String JavaDoc Reply_Remarks)
173 {
174 setValue ("Reply_Remarks", Reply_Remarks);
175 }
176 public String JavaDoc getReply_Remarks()
177 {
178 return (String JavaDoc)getValue("Reply_Remarks");
179 }
180 public void setReply_ShipDate (Timestamp Reply_ShipDate)
181 {
182 setValue ("Reply_ShipDate", Reply_ShipDate);
183 }
184 public Timestamp getReply_ShipDate()
185 {
186 return (Timestamp)getValue("Reply_ShipDate");
187 }
188 public void setRequest_Price (BigDecimal Request_Price)
189 {
190 setValue ("Request_Price", Request_Price);
191 }
192 public BigDecimal getRequest_Price()
193 {
194 BigDecimal bd = (BigDecimal)getValue("Request_Price");
195 if (bd == null) return Env.ZERO;
196 return bd;
197 }
198 public void setRequest_Qty (BigDecimal Request_Qty)
199 {
200 if (Request_Qty == null) throw new IllegalArgumentException JavaDoc ("Request_Qty is mandatory");
201 setValue ("Request_Qty", Request_Qty);
202 }
203 public BigDecimal getRequest_Qty()
204 {
205 BigDecimal bd = (BigDecimal)getValue("Request_Qty");
206 if (bd == null) return Env.ZERO;
207 return bd;
208 }
209 public void setRequest_Shipdate (Timestamp Request_Shipdate)
210 {
211 if (Request_Shipdate == null) throw new IllegalArgumentException JavaDoc ("Request_Shipdate is mandatory");
212 setValue ("Request_Shipdate", Request_Shipdate);
213 }
214 public Timestamp getRequest_Shipdate()
215 {
216 return (Timestamp)getValue("Request_Shipdate");
217 }
218 public void setTrxReceived (Timestamp TrxReceived)
219 {
220 setValue ("TrxReceived", TrxReceived);
221 }
222 public Timestamp getTrxReceived()
223 {
224 return (Timestamp)getValue("TrxReceived");
225 }
226 public void setTrxSent (Timestamp TrxSent)
227 {
228 if (TrxSent == null) throw new IllegalArgumentException JavaDoc ("TrxSent is mandatory");
229 setValue ("TrxSent", TrxSent);
230 }
231 public Timestamp getTrxSent()
232 {
233 return (Timestamp)getValue("TrxSent");
234 }
235 public static final String JavaDoc TRXTYPE_Inquiry = "I";
236 public static final String JavaDoc TRXTYPE_PurchaseOrder = "O";
237 void setTrxType (String JavaDoc TrxType)
238 {
239 if (TrxType.equals("I") || TrxType.equals("O"));
240  else throw new IllegalArgumentException JavaDoc ("TrxType Invalid value - Reference_ID=203 - I - O");
241 if (TrxType == null) throw new IllegalArgumentException JavaDoc ("TrxType is mandatory");
242 setValueNoCheck ("TrxType", TrxType);
243 }
244 public String JavaDoc getTrxType()
245 {
246 return (String JavaDoc)getValue("TrxType");
247 }
248 }
249
Popular Tags