KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_AD_Table extends PO
11 {
12 /** Standard Constructor **/
13 public X_AD_Table (Properties ctx, int AD_Table_ID)
14 {
15 super (ctx, AD_Table_ID);
16 /** if (AD_Table_ID == 0)
17 {
18 setAD_Table_ID (0);
19 setAccessLevel (null);
20 setEntityType (null);
21 setIsChangeLog (false);
22 setIsDeleteable (false);
23 setIsHighVolume (false);
24 setIsSecurityEnabled (false);
25 setIsView (false);
26 setName (null);
27 setReplicationType (null);
28 setTableName (null);
29 }
30  **/

31 }
32 /** Load Constructor **/
33 public X_AD_Table (Properties ctx, ResultSet rs)
34 {
35 super (ctx, rs);
36 }
37 /** Load Meta Data **/
38 protected POInfo initPO (Properties ctx)
39 {
40 int AD_Table_ID = 100;
41 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
42 return poi;
43 }
44 public String JavaDoc toString()
45 {
46 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_AD_Table[").append(getID()).append("]");
47 return sb.toString();
48 }
49 void setAD_Table_ID (int AD_Table_ID)
50 {
51 setValueNoCheck ("AD_Table_ID", new Integer JavaDoc(AD_Table_ID));
52 }
53 public int getAD_Table_ID()
54 {
55 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_Table_ID");
56 if (ii == null) return 0;
57 return ii.intValue();
58 }
59 public void setAD_Val_Rule_ID (int AD_Val_Rule_ID)
60 {
61 if (AD_Val_Rule_ID == 0) setValue ("AD_Val_Rule_ID", null);
62  else
63 setValue ("AD_Val_Rule_ID", new Integer JavaDoc(AD_Val_Rule_ID));
64 }
65 public int getAD_Val_Rule_ID()
66 {
67 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_Val_Rule_ID");
68 if (ii == null) return 0;
69 return ii.intValue();
70 }
71 public void setAD_Window_ID (int AD_Window_ID)
72 {
73 if (AD_Window_ID == 0) setValue ("AD_Window_ID", null);
74  else
75 setValue ("AD_Window_ID", new Integer JavaDoc(AD_Window_ID));
76 }
77 public int getAD_Window_ID()
78 {
79 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_Window_ID");
80 if (ii == null) return 0;
81 return ii.intValue();
82 }
83 public static final String JavaDoc ACCESSLEVEL_Organization = "1";
84 public static final String JavaDoc ACCESSLEVEL_ClientPlusOrganization = "3";
85 public static final String JavaDoc ACCESSLEVEL_SystemOnly = "4";
86 public static final String JavaDoc ACCESSLEVEL_All = "7";
87 public static final String JavaDoc ACCESSLEVEL_ClientOnly = "2";
88 public static final String JavaDoc ACCESSLEVEL_SystemPlusClient = "6";
89 public void setAccessLevel (String JavaDoc AccessLevel)
90 {
91 if (AccessLevel.equals("1") || AccessLevel.equals("3") || AccessLevel.equals("4") || AccessLevel.equals("7") || AccessLevel.equals("2") || AccessLevel.equals("6"));
92  else throw new IllegalArgumentException JavaDoc ("AccessLevel Invalid value - Reference_ID=5 - 1 - 3 - 4 - 7 - 2 - 6");
93 if (AccessLevel == null) throw new IllegalArgumentException JavaDoc ("AccessLevel is mandatory");
94 setValue ("AccessLevel", AccessLevel);
95 }
96 public String JavaDoc getAccessLevel()
97 {
98 return (String JavaDoc)getValue("AccessLevel");
99 }
100 public void setDescription (String JavaDoc Description)
101 {
102 setValue ("Description", Description);
103 }
104 public String JavaDoc getDescription()
105 {
106 return (String JavaDoc)getValue("Description");
107 }
108 public static final String JavaDoc ENTITYTYPE_Dictionary = "D";
109 public static final String JavaDoc ENTITYTYPE_Compiere = "C";
110 public static final String JavaDoc ENTITYTYPE_UserMaintained = "U";
111 public static final String JavaDoc ENTITYTYPE_Applications = "A";
112 public void setEntityType (String JavaDoc EntityType)
113 {
114 if (EntityType.equals("D") || EntityType.equals("C") || EntityType.equals("U") || EntityType.equals("A"));
115  else throw new IllegalArgumentException JavaDoc ("EntityType Invalid value - Reference_ID=245 - D - C - U - A");
116 if (EntityType == null) throw new IllegalArgumentException JavaDoc ("EntityType is mandatory");
117 setValue ("EntityType", EntityType);
118 }
119 public String JavaDoc getEntityType()
120 {
121 return (String JavaDoc)getValue("EntityType");
122 }
123 public void setHelp (String JavaDoc Help)
124 {
125 setValue ("Help", Help);
126 }
127 public String JavaDoc getHelp()
128 {
129 return (String JavaDoc)getValue("Help");
130 }
131 public void setImportTable (String JavaDoc ImportTable)
132 {
133 setValue ("ImportTable", ImportTable);
134 }
135 public String JavaDoc getImportTable()
136 {
137 return (String JavaDoc)getValue("ImportTable");
138 }
139 public void setIsChangeLog (boolean IsChangeLog)
140 {
141 setValue ("IsChangeLog", new Boolean JavaDoc(IsChangeLog));
142 }
143 public boolean isChangeLog()
144 {
145 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsChangeLog");
146 if (bb != null) return bb.booleanValue();
147 return false;
148 }
149 public void setIsDeleteable (boolean IsDeleteable)
150 {
151 setValue ("IsDeleteable", new Boolean JavaDoc(IsDeleteable));
152 }
153 public boolean isDeleteable()
154 {
155 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsDeleteable");
156 if (bb != null) return bb.booleanValue();
157 return false;
158 }
159 public void setIsHighVolume (boolean IsHighVolume)
160 {
161 setValue ("IsHighVolume", new Boolean JavaDoc(IsHighVolume));
162 }
163 public boolean isHighVolume()
164 {
165 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsHighVolume");
166 if (bb != null) return bb.booleanValue();
167 return false;
168 }
169 public void setIsSecurityEnabled (boolean IsSecurityEnabled)
170 {
171 setValue ("IsSecurityEnabled", new Boolean JavaDoc(IsSecurityEnabled));
172 }
173 public boolean isSecurityEnabled()
174 {
175 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsSecurityEnabled");
176 if (bb != null) return bb.booleanValue();
177 return false;
178 }
179 public void setIsView (boolean IsView)
180 {
181 setValue ("IsView", new Boolean JavaDoc(IsView));
182 }
183 public boolean isView()
184 {
185 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsView");
186 if (bb != null) return bb.booleanValue();
187 return false;
188 }
189 void setLoadSeq (int LoadSeq)
190 {
191 setValueNoCheck ("LoadSeq", new Integer JavaDoc(LoadSeq));
192 }
193 public int getLoadSeq()
194 {
195 Integer JavaDoc ii = (Integer JavaDoc)getValue("LoadSeq");
196 if (ii == null) return 0;
197 return ii.intValue();
198 }
199 public void setName (String JavaDoc Name)
200 {
201 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
202 setValue ("Name", Name);
203 }
204 public String JavaDoc getName()
205 {
206 return (String JavaDoc)getValue("Name");
207 }
208 public void setPO_Window_ID (int PO_Window_ID)
209 {
210 if (PO_Window_ID == 0) setValue ("PO_Window_ID", null);
211  else
212 setValue ("PO_Window_ID", new Integer JavaDoc(PO_Window_ID));
213 }
214 public int getPO_Window_ID()
215 {
216 Integer JavaDoc ii = (Integer JavaDoc)getValue("PO_Window_ID");
217 if (ii == null) return 0;
218 return ii.intValue();
219 }
220 public static final String JavaDoc REPLICATIONTYPE_Local = "L";
221 public static final String JavaDoc REPLICATIONTYPE_Merge = "M";
222 public static final String JavaDoc REPLICATIONTYPE_Reference = "R";
223 public void setReplicationType (String JavaDoc ReplicationType)
224 {
225 if (ReplicationType.equals("L") || ReplicationType.equals("M") || ReplicationType.equals("R"));
226  else throw new IllegalArgumentException JavaDoc ("ReplicationType Invalid value - Reference_ID=126 - L - M - R");
227 if (ReplicationType == null) throw new IllegalArgumentException JavaDoc ("ReplicationType is mandatory");
228 setValue ("ReplicationType", ReplicationType);
229 }
230 public String JavaDoc getReplicationType()
231 {
232 return (String JavaDoc)getValue("ReplicationType");
233 }
234 public void setTableName (String JavaDoc TableName)
235 {
236 if (TableName == null) throw new IllegalArgumentException JavaDoc ("TableName is mandatory");
237 setValue ("TableName", TableName);
238 }
239 public String JavaDoc getTableName()
240 {
241 return (String JavaDoc)getValue("TableName");
242 }
243 }
244
Popular Tags