KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_AD_UserDef_Field extends PO
11 {
12 /** Standard Constructor **/
13 public X_AD_UserDef_Field (Properties ctx, int AD_UserDef_Field_ID)
14 {
15 super (ctx, AD_UserDef_Field_ID);
16 /** if (AD_UserDef_Field_ID == 0)
17 {
18 setAD_Field_ID (0);
19 setAD_UserDef_Field_ID (0);
20 setAD_UserDef_Tab_ID (0);
21 setIsDisplayed (false);
22 setIsReadOnly (false);
23 setIsSameLine (false);
24 setName (null);
25 setSeqNo (0);
26 }
27  **/

28 }
29 /** Load Constructor **/
30 public X_AD_UserDef_Field (Properties ctx, ResultSet rs)
31 {
32 super (ctx, rs);
33 }
34 /** Load Meta Data **/
35 protected POInfo initPO (Properties ctx)
36 {
37 int AD_Table_ID = 464;
38 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
39 return poi;
40 }
41 public String JavaDoc toString()
42 {
43 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_AD_UserDef_Field[").append(getID()).append("]");
44 return sb.toString();
45 }
46 public void setAD_Field_ID (int AD_Field_ID)
47 {
48 setValue ("AD_Field_ID", new Integer JavaDoc(AD_Field_ID));
49 }
50 public int getAD_Field_ID()
51 {
52 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_Field_ID");
53 if (ii == null) return 0;
54 return ii.intValue();
55 }
56 void setAD_UserDef_Field_ID (int AD_UserDef_Field_ID)
57 {
58 setValueNoCheck ("AD_UserDef_Field_ID", new Integer JavaDoc(AD_UserDef_Field_ID));
59 }
60 public int getAD_UserDef_Field_ID()
61 {
62 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_UserDef_Field_ID");
63 if (ii == null) return 0;
64 return ii.intValue();
65 }
66 void setAD_UserDef_Tab_ID (int AD_UserDef_Tab_ID)
67 {
68 setValueNoCheck ("AD_UserDef_Tab_ID", new Integer JavaDoc(AD_UserDef_Tab_ID));
69 }
70 public int getAD_UserDef_Tab_ID()
71 {
72 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_UserDef_Tab_ID");
73 if (ii == null) return 0;
74 return ii.intValue();
75 }
76 public void setDescription (String JavaDoc Description)
77 {
78 setValue ("Description", Description);
79 }
80 public String JavaDoc getDescription()
81 {
82 return (String JavaDoc)getValue("Description");
83 }
84 public void setDisplayLength (int DisplayLength)
85 {
86 setValue ("DisplayLength", new Integer JavaDoc(DisplayLength));
87 }
88 public int getDisplayLength()
89 {
90 Integer JavaDoc ii = (Integer JavaDoc)getValue("DisplayLength");
91 if (ii == null) return 0;
92 return ii.intValue();
93 }
94 public void setDisplayLogic (String JavaDoc DisplayLogic)
95 {
96 setValue ("DisplayLogic", DisplayLogic);
97 }
98 public String JavaDoc getDisplayLogic()
99 {
100 return (String JavaDoc)getValue("DisplayLogic");
101 }
102 public void setHelp (String JavaDoc Help)
103 {
104 setValue ("Help", Help);
105 }
106 public String JavaDoc getHelp()
107 {
108 return (String JavaDoc)getValue("Help");
109 }
110 public void setIsDisplayed (boolean IsDisplayed)
111 {
112 setValue ("IsDisplayed", new Boolean JavaDoc(IsDisplayed));
113 }
114 public boolean isDisplayed()
115 {
116 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsDisplayed");
117 if (bb != null) return bb.booleanValue();
118 return false;
119 }
120 public void setIsReadOnly (boolean IsReadOnly)
121 {
122 setValue ("IsReadOnly", new Boolean JavaDoc(IsReadOnly));
123 }
124 public boolean isReadOnly()
125 {
126 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsReadOnly");
127 if (bb != null) return bb.booleanValue();
128 return false;
129 }
130 public void setIsSameLine (boolean IsSameLine)
131 {
132 setValue ("IsSameLine", new Boolean JavaDoc(IsSameLine));
133 }
134 public boolean isSameLine()
135 {
136 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsSameLine");
137 if (bb != null) return bb.booleanValue();
138 return false;
139 }
140 public void setIsUpdateable (boolean IsUpdateable)
141 {
142 setValue ("IsUpdateable", new Boolean JavaDoc(IsUpdateable));
143 }
144 public boolean isUpdateable()
145 {
146 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsUpdateable");
147 if (bb != null) return bb.booleanValue();
148 return false;
149 }
150 public void setName (String JavaDoc Name)
151 {
152 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
153 setValue ("Name", Name);
154 }
155 public String JavaDoc getName()
156 {
157 return (String JavaDoc)getValue("Name");
158 }
159 public void setSeqNo (int SeqNo)
160 {
161 setValue ("SeqNo", new Integer JavaDoc(SeqNo));
162 }
163 public int getSeqNo()
164 {
165 Integer JavaDoc ii = (Integer JavaDoc)getValue("SeqNo");
166 if (ii == null) return 0;
167 return ii.intValue();
168 }
169 public void setSortNo (int SortNo)
170 {
171 setValue ("SortNo", new Integer JavaDoc(SortNo));
172 }
173 public int getSortNo()
174 {
175 Integer JavaDoc ii = (Integer JavaDoc)getValue("SortNo");
176 if (ii == null) return 0;
177 return ii.intValue();
178 }
179 }
180
Free Books   Free Magazines  
Popular Tags