KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_AD_Element extends PO
11 {
12 /** Standard Constructor **/
13 public X_AD_Element (Properties ctx, int AD_Element_ID)
14 {
15 super (ctx, AD_Element_ID);
16 /** if (AD_Element_ID == 0)
17 {
18 setAD_Element_ID (0);
19 setColumnName (null);
20 setEntityType (null);
21 setName (null);
22 setPrintName (null);
23 }
24  **/

25 }
26 /** Load Constructor **/
27 public X_AD_Element (Properties ctx, ResultSet rs)
28 {
29 super (ctx, rs);
30 }
31 /** Load Meta Data **/
32 protected POInfo initPO (Properties ctx)
33 {
34 int AD_Table_ID = 276;
35 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
36 return poi;
37 }
38 public String JavaDoc toString()
39 {
40 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_AD_Element[").append(getID()).append("]");
41 return sb.toString();
42 }
43 void setAD_Element_ID (int AD_Element_ID)
44 {
45 setValueNoCheck ("AD_Element_ID", new Integer JavaDoc(AD_Element_ID));
46 }
47 public int getAD_Element_ID()
48 {
49 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_Element_ID");
50 if (ii == null) return 0;
51 return ii.intValue();
52 }
53 public void setColumnName (String JavaDoc ColumnName)
54 {
55 if (ColumnName == null) throw new IllegalArgumentException JavaDoc ("ColumnName is mandatory");
56 setValue ("ColumnName", ColumnName);
57 }
58 public String JavaDoc getColumnName()
59 {
60 return (String JavaDoc)getValue("ColumnName");
61 }
62 public void setDescription (String JavaDoc Description)
63 {
64 setValue ("Description", Description);
65 }
66 public String JavaDoc getDescription()
67 {
68 return (String JavaDoc)getValue("Description");
69 }
70 public static final String JavaDoc ENTITYTYPE_Dictionary = "D";
71 public static final String JavaDoc ENTITYTYPE_Compiere = "C";
72 public static final String JavaDoc ENTITYTYPE_UserMaintained = "U";
73 public static final String JavaDoc ENTITYTYPE_Applications = "A";
74 public void setEntityType (String JavaDoc EntityType)
75 {
76 if (EntityType.equals("D") || EntityType.equals("C") || EntityType.equals("U") || EntityType.equals("A"));
77  else throw new IllegalArgumentException JavaDoc ("EntityType Invalid value - Reference_ID=245 - D - C - U - A");
78 if (EntityType == null) throw new IllegalArgumentException JavaDoc ("EntityType is mandatory");
79 setValue ("EntityType", EntityType);
80 }
81 public String JavaDoc getEntityType()
82 {
83 return (String JavaDoc)getValue("EntityType");
84 }
85 public void setHelp (String JavaDoc Help)
86 {
87 setValue ("Help", Help);
88 }
89 public String JavaDoc getHelp()
90 {
91 return (String JavaDoc)getValue("Help");
92 }
93 public void setName (String JavaDoc Name)
94 {
95 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
96 setValue ("Name", Name);
97 }
98 public String JavaDoc getName()
99 {
100 return (String JavaDoc)getValue("Name");
101 }
102 public void setPO_Description (String JavaDoc PO_Description)
103 {
104 setValue ("PO_Description", PO_Description);
105 }
106 public String JavaDoc getPO_Description()
107 {
108 return (String JavaDoc)getValue("PO_Description");
109 }
110 public void setPO_Help (String JavaDoc PO_Help)
111 {
112 setValue ("PO_Help", PO_Help);
113 }
114 public String JavaDoc getPO_Help()
115 {
116 return (String JavaDoc)getValue("PO_Help");
117 }
118 public void setPO_Name (String JavaDoc PO_Name)
119 {
120 setValue ("PO_Name", PO_Name);
121 }
122 public String JavaDoc getPO_Name()
123 {
124 return (String JavaDoc)getValue("PO_Name");
125 }
126 public void setPO_PrintName (String JavaDoc PO_PrintName)
127 {
128 setValue ("PO_PrintName", PO_PrintName);
129 }
130 public String JavaDoc getPO_PrintName()
131 {
132 return (String JavaDoc)getValue("PO_PrintName");
133 }
134 public void setPrintName (String JavaDoc PrintName)
135 {
136 if (PrintName == null) throw new IllegalArgumentException JavaDoc ("PrintName is mandatory");
137 setValue ("PrintName", PrintName);
138 }
139 public String JavaDoc getPrintName()
140 {
141 return (String JavaDoc)getValue("PrintName");
142 }
143 }
144
Popular Tags