KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_C_Phase extends PO
11 {
12 /** Standard Constructor **/
13 public X_C_Phase (Properties ctx, int C_Phase_ID)
14 {
15 super (ctx, C_Phase_ID);
16 /** if (C_Phase_ID == 0)
17 {
18 setC_Phase_ID (0);
19 setC_ProjectType_ID (0);
20 setName (null);
21 setSeqNo (0);
22 setStandardQty (Env.ZERO);
23 }
24  **/

25 }
26 /** Load Constructor **/
27 public X_C_Phase (Properties ctx, ResultSet rs)
28 {
29 super (ctx, rs);
30 }
31 /** Load Meta Data **/
32 protected POInfo initPO (Properties ctx)
33 {
34 int AD_Table_ID = 577;
35 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
36 return poi;
37 }
38 public String JavaDoc toString()
39 {
40 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_C_Phase[").append(getID()).append("]");
41 return sb.toString();
42 }
43 void setC_Phase_ID (int C_Phase_ID)
44 {
45 setValueNoCheck ("C_Phase_ID", new Integer JavaDoc(C_Phase_ID));
46 }
47 public int getC_Phase_ID()
48 {
49 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Phase_ID");
50 if (ii == null) return 0;
51 return ii.intValue();
52 }
53 void setC_ProjectType_ID (int C_ProjectType_ID)
54 {
55 setValueNoCheck ("C_ProjectType_ID", new Integer JavaDoc(C_ProjectType_ID));
56 }
57 public int getC_ProjectType_ID()
58 {
59 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_ProjectType_ID");
60 if (ii == null) return 0;
61 return ii.intValue();
62 }
63 public void setDescription (String JavaDoc Description)
64 {
65 setValue ("Description", Description);
66 }
67 public String JavaDoc getDescription()
68 {
69 return (String JavaDoc)getValue("Description");
70 }
71 public void setHelp (String JavaDoc Help)
72 {
73 setValue ("Help", Help);
74 }
75 public String JavaDoc getHelp()
76 {
77 return (String JavaDoc)getValue("Help");
78 }
79 public void setM_Product_ID (int M_Product_ID)
80 {
81 if (M_Product_ID == 0) setValue ("M_Product_ID", null);
82  else
83 setValue ("M_Product_ID", new Integer JavaDoc(M_Product_ID));
84 }
85 public int getM_Product_ID()
86 {
87 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_Product_ID");
88 if (ii == null) return 0;
89 return ii.intValue();
90 }
91 public void setName (String JavaDoc Name)
92 {
93 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
94 setValue ("Name", Name);
95 }
96 public String JavaDoc getName()
97 {
98 return (String JavaDoc)getValue("Name");
99 }
100 public void setSeqNo (int SeqNo)
101 {
102 setValue ("SeqNo", new Integer JavaDoc(SeqNo));
103 }
104 public int getSeqNo()
105 {
106 Integer JavaDoc ii = (Integer JavaDoc)getValue("SeqNo");
107 if (ii == null) return 0;
108 return ii.intValue();
109 }
110 public void setStandardQty (BigDecimal StandardQty)
111 {
112 if (StandardQty == null) throw new IllegalArgumentException JavaDoc ("StandardQty is mandatory");
113 setValue ("StandardQty", StandardQty);
114 }
115 public BigDecimal getStandardQty()
116 {
117 BigDecimal bd = (BigDecimal)getValue("StandardQty");
118 if (bd == null) return Env.ZERO;
119 return bd;
120 }
121 }
122
Popular Tags