KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_AD_Window extends PO
11 {
12 /** Standard Constructor **/
13 public X_AD_Window (Properties ctx, int AD_Window_ID)
14 {
15 super (ctx, AD_Window_ID);
16 /** if (AD_Window_ID == 0)
17 {
18 setAD_Window_ID (0);
19 setEntityType (null);
20 setIsDefault (false);
21 setIsSOTrx (false);
22 setName (null);
23 setWindowType (null);
24 }
25  **/

26 }
27 /** Load Constructor **/
28 public X_AD_Window (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 = 105;
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_Window[").append(getID()).append("]");
42 return sb.toString();
43 }
44 public void setAD_Color_ID (int AD_Color_ID)
45 {
46 if (AD_Color_ID == 0) setValue ("AD_Color_ID", null);
47  else
48 setValue ("AD_Color_ID", new Integer JavaDoc(AD_Color_ID));
49 }
50 public int getAD_Color_ID()
51 {
52 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_Color_ID");
53 if (ii == null) return 0;
54 return ii.intValue();
55 }
56 public void setAD_Image_ID (int AD_Image_ID)
57 {
58 if (AD_Image_ID == 0) setValue ("AD_Image_ID", null);
59  else
60 setValue ("AD_Image_ID", new Integer JavaDoc(AD_Image_ID));
61 }
62 public int getAD_Image_ID()
63 {
64 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_Image_ID");
65 if (ii == null) return 0;
66 return ii.intValue();
67 }
68 void setAD_Window_ID (int AD_Window_ID)
69 {
70 setValueNoCheck ("AD_Window_ID", new Integer JavaDoc(AD_Window_ID));
71 }
72 public int getAD_Window_ID()
73 {
74 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_Window_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 setIsDefault (boolean IsDefault)
110 {
111 setValue ("IsDefault", new Boolean JavaDoc(IsDefault));
112 }
113 public boolean isDefault()
114 {
115 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsDefault");
116 if (bb != null) return bb.booleanValue();
117 return false;
118 }
119 public void setIsSOTrx (boolean IsSOTrx)
120 {
121 setValue ("IsSOTrx", new Boolean JavaDoc(IsSOTrx));
122 }
123 public boolean isSOTrx()
124 {
125 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsSOTrx");
126 if (bb != null) return bb.booleanValue();
127 return false;
128 }
129 public void setName (String JavaDoc Name)
130 {
131 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
132 setValue ("Name", Name);
133 }
134 public String JavaDoc getName()
135 {
136 return (String JavaDoc)getValue("Name");
137 }
138 public void setProcessing (String JavaDoc Processing)
139 {
140 setValue ("Processing", Processing);
141 }
142 public String JavaDoc getProcessing()
143 {
144 return (String JavaDoc)getValue("Processing");
145 }
146 public static final String JavaDoc WINDOWTYPE_SingleRecord = "S";
147 public static final String JavaDoc WINDOWTYPE_Maintain = "M";
148 public static final String JavaDoc WINDOWTYPE_Transaction = "T";
149 public static final String JavaDoc WINDOWTYPE_QueryOnly = "Q";
150 public void setWindowType (String JavaDoc WindowType)
151 {
152 if (WindowType.equals("S") || WindowType.equals("M") || WindowType.equals("T") || WindowType.equals("Q"));
153  else throw new IllegalArgumentException JavaDoc ("WindowType Invalid value - Reference_ID=108 - S - M - T - Q");
154 if (WindowType == null) throw new IllegalArgumentException JavaDoc ("WindowType is mandatory");
155 setValue ("WindowType", WindowType);
156 }
157 public String JavaDoc getWindowType()
158 {
159 return (String JavaDoc)getValue("WindowType");
160 }
161 }
162
Popular Tags