KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_AD_UserDef_Tab extends PO
11 {
12 /** Standard Constructor **/
13 public X_AD_UserDef_Tab (Properties ctx, int AD_UserDef_Tab_ID)
14 {
15 super (ctx, AD_UserDef_Tab_ID);
16 /** if (AD_UserDef_Tab_ID == 0)
17 {
18 setAD_Tab_ID (0);
19 setAD_UserDef_Tab_ID (0);
20 setAD_UserDef_Win_ID (0);
21 setIsReadOnly (false);
22 setIsSingleRow (false);
23 setName (null);
24 }
25  **/

26 }
27 /** Load Constructor **/
28 public X_AD_UserDef_Tab (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 = 466;
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_UserDef_Tab[").append(getID()).append("]");
42 return sb.toString();
43 }
44 public void setAD_Tab_ID (int AD_Tab_ID)
45 {
46 setValue ("AD_Tab_ID", new Integer JavaDoc(AD_Tab_ID));
47 }
48 public int getAD_Tab_ID()
49 {
50 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_Tab_ID");
51 if (ii == null) return 0;
52 return ii.intValue();
53 }
54 void setAD_UserDef_Tab_ID (int AD_UserDef_Tab_ID)
55 {
56 setValueNoCheck ("AD_UserDef_Tab_ID", new Integer JavaDoc(AD_UserDef_Tab_ID));
57 }
58 public int getAD_UserDef_Tab_ID()
59 {
60 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_UserDef_Tab_ID");
61 if (ii == null) return 0;
62 return ii.intValue();
63 }
64 void setAD_UserDef_Win_ID (int AD_UserDef_Win_ID)
65 {
66 setValueNoCheck ("AD_UserDef_Win_ID", new Integer JavaDoc(AD_UserDef_Win_ID));
67 }
68 public int getAD_UserDef_Win_ID()
69 {
70 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_UserDef_Win_ID");
71 if (ii == null) return 0;
72 return ii.intValue();
73 }
74 public void setDescription (String JavaDoc Description)
75 {
76 setValue ("Description", Description);
77 }
78 public String JavaDoc getDescription()
79 {
80 return (String JavaDoc)getValue("Description");
81 }
82 public void setHelp (String JavaDoc Help)
83 {
84 setValue ("Help", Help);
85 }
86 public String JavaDoc getHelp()
87 {
88 return (String JavaDoc)getValue("Help");
89 }
90 public void setIsReadOnly (boolean IsReadOnly)
91 {
92 setValue ("IsReadOnly", new Boolean JavaDoc(IsReadOnly));
93 }
94 public boolean isReadOnly()
95 {
96 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsReadOnly");
97 if (bb != null) return bb.booleanValue();
98 return false;
99 }
100 public void setIsSingleRow (boolean IsSingleRow)
101 {
102 setValue ("IsSingleRow", new Boolean JavaDoc(IsSingleRow));
103 }
104 public boolean isSingleRow()
105 {
106 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsSingleRow");
107 if (bb != null) return bb.booleanValue();
108 return false;
109 }
110 public void setName (String JavaDoc Name)
111 {
112 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
113 setValue ("Name", Name);
114 }
115 public String JavaDoc getName()
116 {
117 return (String JavaDoc)getValue("Name");
118 }
119 }
120
Popular Tags