KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

26 }
27 /** Load Constructor **/
28 public X_M_ProductionLine (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 = 326;
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_ProductionLine[").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_AttributeSetInstance_ID (int M_AttributeSetInstance_ID)
63 {
64 if (M_AttributeSetInstance_ID == 0) setValue ("M_AttributeSetInstance_ID", null);
65  else
66 setValue ("M_AttributeSetInstance_ID", new Integer JavaDoc(M_AttributeSetInstance_ID));
67 }
68 public int getM_AttributeSetInstance_ID()
69 {
70 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_AttributeSetInstance_ID");
71 if (ii == null) return 0;
72 return ii.intValue();
73 }
74 public void setM_Locator_ID (int M_Locator_ID)
75 {
76 setValue ("M_Locator_ID", new Integer JavaDoc(M_Locator_ID));
77 }
78 public int getM_Locator_ID()
79 {
80 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_Locator_ID");
81 if (ii == null) return 0;
82 return ii.intValue();
83 }
84 public void setM_Product_ID (int M_Product_ID)
85 {
86 setValue ("M_Product_ID", new Integer JavaDoc(M_Product_ID));
87 }
88 public int getM_Product_ID()
89 {
90 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_Product_ID");
91 if (ii == null) return 0;
92 return ii.intValue();
93 }
94 void setM_ProductionLine_ID (int M_ProductionLine_ID)
95 {
96 setValueNoCheck ("M_ProductionLine_ID", new Integer JavaDoc(M_ProductionLine_ID));
97 }
98 public int getM_ProductionLine_ID()
99 {
100 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_ProductionLine_ID");
101 if (ii == null) return 0;
102 return ii.intValue();
103 }
104 void setM_ProductionPlan_ID (int M_ProductionPlan_ID)
105 {
106 setValueNoCheck ("M_ProductionPlan_ID", new Integer JavaDoc(M_ProductionPlan_ID));
107 }
108 public int getM_ProductionPlan_ID()
109 {
110 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_ProductionPlan_ID");
111 if (ii == null) return 0;
112 return ii.intValue();
113 }
114 public void setMovementQty (BigDecimal MovementQty)
115 {
116 if (MovementQty == null) throw new IllegalArgumentException JavaDoc ("MovementQty is mandatory");
117 setValue ("MovementQty", MovementQty);
118 }
119 public BigDecimal getMovementQty()
120 {
121 BigDecimal bd = (BigDecimal)getValue("MovementQty");
122 if (bd == null) return Env.ZERO;
123 return bd;
124 }
125 }
126
Free Books   Free Magazines  
Popular Tags