KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_AD_Ref_List extends PO
11 {
12 /** Standard Constructor **/
13 public X_AD_Ref_List (Properties ctx, int AD_Ref_List_ID)
14 {
15 super (ctx, AD_Ref_List_ID);
16 /** if (AD_Ref_List_ID == 0)
17 {
18 setAD_Ref_List_ID (0);
19 setAD_Reference_ID (0);
20 setEntityType (null);
21 setName (null);
22 setValue (null);
23 }
24  **/

25 }
26 /** Load Constructor **/
27 public X_AD_Ref_List (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 = 104;
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_Ref_List[").append(getID()).append("]");
41 return sb.toString();
42 }
43 void setAD_Ref_List_ID (int AD_Ref_List_ID)
44 {
45 setValueNoCheck ("AD_Ref_List_ID", new Integer JavaDoc(AD_Ref_List_ID));
46 }
47 public int getAD_Ref_List_ID()
48 {
49 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_Ref_List_ID");
50 if (ii == null) return 0;
51 return ii.intValue();
52 }
53 void setAD_Reference_ID (int AD_Reference_ID)
54 {
55 setValueNoCheck ("AD_Reference_ID", new Integer JavaDoc(AD_Reference_ID));
56 }
57 public int getAD_Reference_ID()
58 {
59 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_Reference_ID");
60 if (ii == null) return 0;
61 return ii.intValue();
62 }
63 public void setDescription (String JavaDoc Description)
64 {
65 setValue ("Description", Description);
66 }
67 public String JavaDoc getDescription()
68 {
69 return (String JavaDoc)getValue("Description");
70 }
71 public static final String JavaDoc ENTITYTYPE_Dictionary = "D";
72 public static final String JavaDoc ENTITYTYPE_Compiere = "C";
73 public static final String JavaDoc ENTITYTYPE_UserMaintained = "U";
74 public static final String JavaDoc ENTITYTYPE_Applications = "A";
75 public void setEntityType (String JavaDoc EntityType)
76 {
77 if (EntityType.equals("D") || EntityType.equals("C") || EntityType.equals("U") || EntityType.equals("A"));
78  else throw new IllegalArgumentException JavaDoc ("EntityType Invalid value - Reference_ID=245 - D - C - U - A");
79 if (EntityType == null) throw new IllegalArgumentException JavaDoc ("EntityType is mandatory");
80 setValue ("EntityType", EntityType);
81 }
82 public String JavaDoc getEntityType()
83 {
84 return (String JavaDoc)getValue("EntityType");
85 }
86 public void setName (String JavaDoc Name)
87 {
88 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
89 setValue ("Name", Name);
90 }
91 public String JavaDoc getName()
92 {
93 return (String JavaDoc)getValue("Name");
94 }
95 public void setValidFrom (Timestamp ValidFrom)
96 {
97 setValue ("ValidFrom", ValidFrom);
98 }
99 public Timestamp getValidFrom()
100 {
101 return (Timestamp)getValue("ValidFrom");
102 }
103 public void setValidTo (Timestamp ValidTo)
104 {
105 setValue ("ValidTo", ValidTo);
106 }
107 public Timestamp getValidTo()
108 {
109 return (Timestamp)getValue("ValidTo");
110 }
111 public void setValue (String JavaDoc Value)
112 {
113 if (Value == null) throw new IllegalArgumentException JavaDoc ("Value is mandatory");
114 setValue ("Value", Value);
115 }
116 public String JavaDoc getValue()
117 {
118 return (String JavaDoc)getValue("Value");
119 }
120 }
121
Free Books   Free Magazines  
Popular Tags