KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_M_ProductionPlan extends PO
11 {
12 /** Standard Constructor **/
13 public X_M_ProductionPlan (Properties ctx, int M_ProductionPlan_ID)
14 {
15 super (ctx, M_ProductionPlan_ID);
16 /** if (M_ProductionPlan_ID == 0)
17 {
18 setLine (0);
19 setM_Locator_ID (0);
20 setM_Product_ID (0);
21 setM_ProductionPlan_ID (0);
22 setM_Production_ID (0);
23 setProductionQty (Env.ZERO);
24 }
25  **/

26 }
27 /** Load Constructor **/
28 public X_M_ProductionPlan (Properties ctx, ResultSet rs)
29 {
30 super (ctx, rs);
31 }
32 /** Load Meta Data **/
33 protected POInfo initPO (Properties ctx)
34 {
35 int AD_Table_ID = 385;
36 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
37 return poi;
38 }
39 public String JavaDoc toString()
40 {
41 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_M_ProductionPlan[").append(getID()).append("]");
42 return sb.toString();
43 }
44 public void setDescription (String JavaDoc Description)
45 {
46 setValue ("Description", Description);
47 }
48 public String JavaDoc getDescription()
49 {
50 return (String JavaDoc)getValue("Description");
51 }
52 public void setLine (int Line)
53 {
54 setValue ("Line", new Integer JavaDoc(Line));
55 }
56 public int getLine()
57 {
58 Integer JavaDoc ii = (Integer JavaDoc)getValue("Line");
59 if (ii == null) return 0;
60 return ii.intValue();
61 }
62 public void setM_Locator_ID (int M_Locator_ID)
63 {
64 setValue ("M_Locator_ID", new Integer JavaDoc(M_Locator_ID));
65 }
66 public int getM_Locator_ID()
67 {
68 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_Locator_ID");
69 if (ii == null) return 0;
70 return ii.intValue();
71 }
72 public void setM_Product_ID (int M_Product_ID)
73 {
74 setValue ("M_Product_ID", new Integer JavaDoc(M_Product_ID));
75 }
76 public int getM_Product_ID()
77 {
78 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_Product_ID");
79 if (ii == null) return 0;
80 return ii.intValue();
81 }
82 void setM_ProductionPlan_ID (int M_ProductionPlan_ID)
83 {
84 setValueNoCheck ("M_ProductionPlan_ID", new Integer JavaDoc(M_ProductionPlan_ID));
85 }
86 public int getM_ProductionPlan_ID()
87 {
88 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_ProductionPlan_ID");
89 if (ii == null) return 0;
90 return ii.intValue();
91 }
92 void setM_Production_ID (int M_Production_ID)
93 {
94 setValueNoCheck ("M_Production_ID", new Integer JavaDoc(M_Production_ID));
95 }
96 public int getM_Production_ID()
97 {
98 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_Production_ID");
99 if (ii == null) return 0;
100 return ii.intValue();
101 }
102 public void setProductionQty (BigDecimal ProductionQty)
103 {
104 if (ProductionQty == null) throw new IllegalArgumentException JavaDoc ("ProductionQty is mandatory");
105 setValue ("ProductionQty", ProductionQty);
106 }
107 public BigDecimal getProductionQty()
108 {
109 BigDecimal bd = (BigDecimal)getValue("ProductionQty");
110 if (bd == null) return Env.ZERO;
111 return bd;
112 }
113 }
114
Popular Tags