KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_PA_Goal extends PO
11 {
12 /** Standard Constructor **/
13 public X_PA_Goal (Properties ctx, int PA_Goal_ID)
14 {
15 super (ctx, PA_Goal_ID);
16 /** if (PA_Goal_ID == 0)
17 {
18 setGoalPerformance (Env.ZERO);
19 setIsSummary (false);
20 setMeasureActual (Env.ZERO);
21 setMeasureTarget (Env.ZERO);
22 setName (null);
23 setPA_Goal_ID (0);
24 setPA_Measure_ID (0);
25 setRelativeWeight (Env.ZERO);
26 setSeqNo (0);
27 }
28  **/

29 }
30 /** Load Constructor **/
31 public X_PA_Goal (Properties ctx, ResultSet rs)
32 {
33 super (ctx, rs);
34 }
35 /** Load Meta Data **/
36 protected POInfo initPO (Properties ctx)
37 {
38 int AD_Table_ID = 440;
39 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
40 return poi;
41 }
42 public String JavaDoc toString()
43 {
44 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_PA_Goal[").append(getID()).append("]");
45 return sb.toString();
46 }
47 void setDateLastRun (Timestamp DateLastRun)
48 {
49 setValueNoCheck ("DateLastRun", DateLastRun);
50 }
51 public Timestamp getDateLastRun()
52 {
53 return (Timestamp)getValue("DateLastRun");
54 }
55 public void setDescription (String JavaDoc Description)
56 {
57 setValue ("Description", Description);
58 }
59 public String JavaDoc getDescription()
60 {
61 return (String JavaDoc)getValue("Description");
62 }
63 void setGoalPerformance (BigDecimal GoalPerformance)
64 {
65 if (GoalPerformance == null) throw new IllegalArgumentException JavaDoc ("GoalPerformance is mandatory");
66 setValueNoCheck ("GoalPerformance", GoalPerformance);
67 }
68 public BigDecimal getGoalPerformance()
69 {
70 BigDecimal bd = (BigDecimal)getValue("GoalPerformance");
71 if (bd == null) return Env.ZERO;
72 return bd;
73 }
74 public void setIsSummary (boolean IsSummary)
75 {
76 setValue ("IsSummary", new Boolean JavaDoc(IsSummary));
77 }
78 public boolean isSummary()
79 {
80 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsSummary");
81 if (bb != null) return bb.booleanValue();
82 return false;
83 }
84 void setMeasureActual (BigDecimal MeasureActual)
85 {
86 if (MeasureActual == null) throw new IllegalArgumentException JavaDoc ("MeasureActual is mandatory");
87 setValueNoCheck ("MeasureActual", MeasureActual);
88 }
89 public BigDecimal getMeasureActual()
90 {
91 BigDecimal bd = (BigDecimal)getValue("MeasureActual");
92 if (bd == null) return Env.ZERO;
93 return bd;
94 }
95 public void setMeasureTarget (BigDecimal MeasureTarget)
96 {
97 if (MeasureTarget == null) throw new IllegalArgumentException JavaDoc ("MeasureTarget is mandatory");
98 setValue ("MeasureTarget", MeasureTarget);
99 }
100 public BigDecimal getMeasureTarget()
101 {
102 BigDecimal bd = (BigDecimal)getValue("MeasureTarget");
103 if (bd == null) return Env.ZERO;
104 return bd;
105 }
106 public void setName (String JavaDoc Name)
107 {
108 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
109 setValue ("Name", Name);
110 }
111 public String JavaDoc getName()
112 {
113 return (String JavaDoc)getValue("Name");
114 }
115 public void setNote (String JavaDoc Note)
116 {
117 setValue ("Note", Note);
118 }
119 public String JavaDoc getNote()
120 {
121 return (String JavaDoc)getValue("Note");
122 }
123 void setPA_Goal_ID (int PA_Goal_ID)
124 {
125 setValueNoCheck ("PA_Goal_ID", new Integer JavaDoc(PA_Goal_ID));
126 }
127 public int getPA_Goal_ID()
128 {
129 Integer JavaDoc ii = (Integer JavaDoc)getValue("PA_Goal_ID");
130 if (ii == null) return 0;
131 return ii.intValue();
132 }
133 public void setPA_Measure_ID (int PA_Measure_ID)
134 {
135 setValue ("PA_Measure_ID", new Integer JavaDoc(PA_Measure_ID));
136 }
137 public int getPA_Measure_ID()
138 {
139 Integer JavaDoc ii = (Integer JavaDoc)getValue("PA_Measure_ID");
140 if (ii == null) return 0;
141 return ii.intValue();
142 }
143 public void setParent_ID (int Parent_ID)
144 {
145 if (Parent_ID == 0) setValue ("Parent_ID", null);
146  else
147 setValue ("Parent_ID", new Integer JavaDoc(Parent_ID));
148 }
149 public int getParent_ID()
150 {
151 Integer JavaDoc ii = (Integer JavaDoc)getValue("Parent_ID");
152 if (ii == null) return 0;
153 return ii.intValue();
154 }
155 public void setRelativeWeight (BigDecimal RelativeWeight)
156 {
157 if (RelativeWeight == null) throw new IllegalArgumentException JavaDoc ("RelativeWeight is mandatory");
158 setValue ("RelativeWeight", RelativeWeight);
159 }
160 public BigDecimal getRelativeWeight()
161 {
162 BigDecimal bd = (BigDecimal)getValue("RelativeWeight");
163 if (bd == null) return Env.ZERO;
164 return bd;
165 }
166 public void setSeqNo (int SeqNo)
167 {
168 setValue ("SeqNo", new Integer JavaDoc(SeqNo));
169 }
170 public int getSeqNo()
171 {
172 Integer JavaDoc ii = (Integer JavaDoc)getValue("SeqNo");
173 if (ii == null) return 0;
174 return ii.intValue();
175 }
176 }
177
Popular Tags