KickJava   Java API By Example, From Geeks To Geeks.

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


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 AD_WF_Node
9  ** @version $Id: X_AD_WF_Node.java,v 1.27 2003/10/31 05:30:52 jjanke Exp $ **/

10 public class X_AD_WF_Node extends PO
11 {
12 /** Standard Constructor **/
13 public X_AD_WF_Node (Properties ctx, int AD_WF_Node_ID)
14 {
15 super (ctx, AD_WF_Node_ID);
16 /** if (AD_WF_Node_ID == 0)
17 {
18 setAD_WF_Node_ID (0);
19 setAD_Workflow_ID (0);
20 setAction (null);
21 setEntityType (null);
22 setIsCentrallyMaintained (false);
23 setName (null);
24 }
25  **/

26 }
27 /** Load Constructor **/
28 public X_AD_WF_Node (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 = 129;
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_AD_WF_Node[").append(getID()).append("]");
42 return sb.toString();
43 }
44 public void setAD_Form_ID (int AD_Form_ID)
45 {
46 if (AD_Form_ID == 0) setValue ("AD_Form_ID", null);
47  else
48 setValue ("AD_Form_ID", new Integer JavaDoc(AD_Form_ID));
49 }
50 public int getAD_Form_ID()
51 {
52 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_Form_ID");
53 if (ii == null) return 0;
54 return ii.intValue();
55 }
56 public void setAD_Process_ID (int AD_Process_ID)
57 {
58 if (AD_Process_ID == 0) setValue ("AD_Process_ID", null);
59  else
60 setValue ("AD_Process_ID", new Integer JavaDoc(AD_Process_ID));
61 }
62 public int getAD_Process_ID()
63 {
64 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_Process_ID");
65 if (ii == null) return 0;
66 return ii.intValue();
67 }
68 public void setAD_Task_ID (int AD_Task_ID)
69 {
70 if (AD_Task_ID == 0) setValue ("AD_Task_ID", null);
71  else
72 setValue ("AD_Task_ID", new Integer JavaDoc(AD_Task_ID));
73 }
74 public int getAD_Task_ID()
75 {
76 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_Task_ID");
77 if (ii == null) return 0;
78 return ii.intValue();
79 }
80 void setAD_WF_Node_ID (int AD_WF_Node_ID)
81 {
82 setValueNoCheck ("AD_WF_Node_ID", new Integer JavaDoc(AD_WF_Node_ID));
83 }
84 public int getAD_WF_Node_ID()
85 {
86 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_WF_Node_ID");
87 if (ii == null) return 0;
88 return ii.intValue();
89 }
90 public void setAD_Window_ID (int AD_Window_ID)
91 {
92 if (AD_Window_ID == 0) setValue ("AD_Window_ID", null);
93  else
94 setValue ("AD_Window_ID", new Integer JavaDoc(AD_Window_ID));
95 }
96 public int getAD_Window_ID()
97 {
98 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_Window_ID");
99 if (ii == null) return 0;
100 return ii.intValue();
101 }
102 void setAD_Workflow_ID (int AD_Workflow_ID)
103 {
104 setValueNoCheck ("AD_Workflow_ID", new Integer JavaDoc(AD_Workflow_ID));
105 }
106 public int getAD_Workflow_ID()
107 {
108 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_Workflow_ID");
109 if (ii == null) return 0;
110 return ii.intValue();
111 }
112 public static final String JavaDoc ACTION_Form = "X";
113 public static final String JavaDoc ACTION_Report = "R";
114 public static final String JavaDoc ACTION_Workbench = "B";
115 public static final String JavaDoc ACTION_Window = "W";
116 public static final String JavaDoc ACTION_Task = "T";
117 public static final String JavaDoc ACTION_WorkFlow = "F";
118 public static final String JavaDoc ACTION_Process = "P";
119 public void setAction (String JavaDoc Action)
120 {
121 if (Action.equals("X") || Action.equals("R") || Action.equals("B") || Action.equals("W") || Action.equals("T") || Action.equals("F") || Action.equals("P"));
122  else throw new IllegalArgumentException JavaDoc ("Action Invalid value - Reference_ID=104 - X - R - B - W - T - F - P");
123 if (Action == null) throw new IllegalArgumentException JavaDoc ("Action is mandatory");
124 setValue ("Action", Action);
125 }
126 public String JavaDoc getAction()
127 {
128 return (String JavaDoc)getValue("Action");
129 }
130 public void setDescription (String JavaDoc Description)
131 {
132 setValue ("Description", Description);
133 }
134 public String JavaDoc getDescription()
135 {
136 return (String JavaDoc)getValue("Description");
137 }
138 public static final String JavaDoc ENTITYTYPE_Dictionary = "D";
139 public static final String JavaDoc ENTITYTYPE_Compiere = "C";
140 public static final String JavaDoc ENTITYTYPE_UserMaintained = "U";
141 public static final String JavaDoc ENTITYTYPE_Applications = "A";
142 public void setEntityType (String JavaDoc EntityType)
143 {
144 if (EntityType.equals("D") || EntityType.equals("C") || EntityType.equals("U") || EntityType.equals("A"));
145  else throw new IllegalArgumentException JavaDoc ("EntityType Invalid value - Reference_ID=245 - D - C - U - A");
146 if (EntityType == null) throw new IllegalArgumentException JavaDoc ("EntityType is mandatory");
147 setValue ("EntityType", EntityType);
148 }
149 public String JavaDoc getEntityType()
150 {
151 return (String JavaDoc)getValue("EntityType");
152 }
153 public void setHelp (String JavaDoc Help)
154 {
155 setValue ("Help", Help);
156 }
157 public String JavaDoc getHelp()
158 {
159 return (String JavaDoc)getValue("Help");
160 }
161 public void setIsCentrallyMaintained (boolean IsCentrallyMaintained)
162 {
163 setValue ("IsCentrallyMaintained", new Boolean JavaDoc(IsCentrallyMaintained));
164 }
165 public boolean isCentrallyMaintained()
166 {
167 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsCentrallyMaintained");
168 if (bb != null) return bb.booleanValue();
169 return false;
170 }
171 public void setName (String JavaDoc Name)
172 {
173 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
174 setValue ("Name", Name);
175 }
176 public String JavaDoc getName()
177 {
178 return (String JavaDoc)getValue("Name");
179 }
180 public void setWorkflow_ID (int Workflow_ID)
181 {
182 if (Workflow_ID == 0) setValue ("Workflow_ID", null);
183  else
184 setValue ("Workflow_ID", new Integer JavaDoc(Workflow_ID));
185 }
186 public int getWorkflow_ID()
187 {
188 Integer JavaDoc ii = (Integer JavaDoc)getValue("Workflow_ID");
189 if (ii == null) return 0;
190 return ii.intValue();
191 }
192 public void setXposition (int Xposition)
193 {
194 setValue ("Xposition", new Integer JavaDoc(Xposition));
195 }
196 public int getXposition()
197 {
198 Integer JavaDoc ii = (Integer JavaDoc)getValue("Xposition");
199 if (ii == null) return 0;
200 return ii.intValue();
201 }
202 public void setYposition (int Yposition)
203 {
204 setValue ("Yposition", new Integer JavaDoc(Yposition));
205 }
206 public int getYposition()
207 {
208 Integer JavaDoc ii = (Integer JavaDoc)getValue("Yposition");
209 if (ii == null) return 0;
210 return ii.intValue();
211 }
212 }
213
Popular Tags