KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_AD_Workbench extends PO
11 {
12 /** Standard Constructor **/
13 public X_AD_Workbench (Properties ctx, int AD_Workbench_ID)
14 {
15 super (ctx, AD_Workbench_ID);
16 /** if (AD_Workbench_ID == 0)
17 {
18 setAD_Column_ID (0);
19 setAD_Workbench_ID (0);
20 setEntityType (null);
21 setName (null);
22 }
23  **/

24 }
25 /** Load Constructor **/
26 public X_AD_Workbench (Properties ctx, ResultSet rs)
27 {
28 super (ctx, rs);
29 }
30 /** Load Meta Data **/
31 protected POInfo initPO (Properties ctx)
32 {
33 int AD_Table_ID = 468;
34 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
35 return poi;
36 }
37 public String JavaDoc toString()
38 {
39 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_AD_Workbench[").append(getID()).append("]");
40 return sb.toString();
41 }
42 public void setAD_Color_ID (Object JavaDoc AD_Color_ID)
43 {
44 setValue ("AD_Color_ID", AD_Color_ID);
45 }
46 public Object JavaDoc getAD_Color_ID()
47 {
48 return getValue("AD_Color_ID");
49 }
50 public void setAD_Column_ID (int AD_Column_ID)
51 {
52 setValue ("AD_Column_ID", new Integer JavaDoc(AD_Column_ID));
53 }
54 public int getAD_Column_ID()
55 {
56 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_Column_ID");
57 if (ii == null) return 0;
58 return ii.intValue();
59 }
60 public void setAD_Image_ID (Object JavaDoc AD_Image_ID)
61 {
62 setValue ("AD_Image_ID", AD_Image_ID);
63 }
64 public Object JavaDoc getAD_Image_ID()
65 {
66 return getValue("AD_Image_ID");
67 }
68 void setAD_Workbench_ID (int AD_Workbench_ID)
69 {
70 setValueNoCheck ("AD_Workbench_ID", new Integer JavaDoc(AD_Workbench_ID));
71 }
72 public int getAD_Workbench_ID()
73 {
74 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_Workbench_ID");
75 if (ii == null) return 0;
76 return ii.intValue();
77 }
78 public void setDescription (String JavaDoc Description)
79 {
80 setValue ("Description", Description);
81 }
82 public String JavaDoc getDescription()
83 {
84 return (String JavaDoc)getValue("Description");
85 }
86 public static final String JavaDoc ENTITYTYPE_Dictionary = "D";
87 public static final String JavaDoc ENTITYTYPE_Compiere = "C";
88 public static final String JavaDoc ENTITYTYPE_UserMaintained = "U";
89 public static final String JavaDoc ENTITYTYPE_Applications = "A";
90 public void setEntityType (String JavaDoc EntityType)
91 {
92 if (EntityType.equals("D") || EntityType.equals("C") || EntityType.equals("U") || EntityType.equals("A"));
93  else throw new IllegalArgumentException JavaDoc ("EntityType Invalid value - Reference_ID=245 - D - C - U - A");
94 if (EntityType == null) throw new IllegalArgumentException JavaDoc ("EntityType is mandatory");
95 setValue ("EntityType", EntityType);
96 }
97 public String JavaDoc getEntityType()
98 {
99 return (String JavaDoc)getValue("EntityType");
100 }
101 public void setHelp (String JavaDoc Help)
102 {
103 setValue ("Help", Help);
104 }
105 public String JavaDoc getHelp()
106 {
107 return (String JavaDoc)getValue("Help");
108 }
109 public void setName (String JavaDoc Name)
110 {
111 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
112 setValue ("Name", Name);
113 }
114 public String JavaDoc getName()
115 {
116 return (String JavaDoc)getValue("Name");
117 }
118 public void setPA_Goal_ID (int PA_Goal_ID)
119 {
120 if (PA_Goal_ID == 0) setValue ("PA_Goal_ID", null);
121  else
122 setValue ("PA_Goal_ID", new Integer JavaDoc(PA_Goal_ID));
123 }
124 public int getPA_Goal_ID()
125 {
126 Integer JavaDoc ii = (Integer JavaDoc)getValue("PA_Goal_ID");
127 if (ii == null) return 0;
128 return ii.intValue();
129 }
130 }
131
Popular Tags