KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

24 }
25 /** Load Constructor **/
26 public X_AD_Reference (Properties ctx, ResultSet rs)
27 {
28 super (ctx, rs);
29 }
30 /** Load Meta Data **/
31 protected POInfo initPO (Properties ctx)
32 {
33 int AD_Table_ID = 102;
34 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
35 return poi;
36 }
37 public String JavaDoc toString()
38 {
39 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_AD_Reference[").append(getID()).append("]");
40 return sb.toString();
41 }
42 void setAD_Reference_ID (int AD_Reference_ID)
43 {
44 setValueNoCheck ("AD_Reference_ID", new Integer JavaDoc(AD_Reference_ID));
45 }
46 public int getAD_Reference_ID()
47 {
48 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_Reference_ID");
49 if (ii == null) return 0;
50 return ii.intValue();
51 }
52 public void setDescription (String JavaDoc Description)
53 {
54 setValue ("Description", Description);
55 }
56 public String JavaDoc getDescription()
57 {
58 return (String JavaDoc)getValue("Description");
59 }
60 public static final String JavaDoc ENTITYTYPE_Dictionary = "D";
61 public static final String JavaDoc ENTITYTYPE_Compiere = "C";
62 public static final String JavaDoc ENTITYTYPE_UserMaintained = "U";
63 public static final String JavaDoc ENTITYTYPE_Applications = "A";
64 public void setEntityType (String JavaDoc EntityType)
65 {
66 if (EntityType.equals("D") || EntityType.equals("C") || EntityType.equals("U") || EntityType.equals("A"));
67  else throw new IllegalArgumentException JavaDoc ("EntityType Invalid value - Reference_ID=245 - D - C - U - A");
68 if (EntityType == null) throw new IllegalArgumentException JavaDoc ("EntityType is mandatory");
69 setValue ("EntityType", EntityType);
70 }
71 public String JavaDoc getEntityType()
72 {
73 return (String JavaDoc)getValue("EntityType");
74 }
75 public void setHelp (String JavaDoc Help)
76 {
77 setValue ("Help", Help);
78 }
79 public String JavaDoc getHelp()
80 {
81 return (String JavaDoc)getValue("Help");
82 }
83 public void setName (String JavaDoc Name)
84 {
85 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
86 setValue ("Name", Name);
87 }
88 public String JavaDoc getName()
89 {
90 return (String JavaDoc)getValue("Name");
91 }
92 public void setVFormat (String JavaDoc VFormat)
93 {
94 setValue ("VFormat", VFormat);
95 }
96 public String JavaDoc getVFormat()
97 {
98 return (String JavaDoc)getValue("VFormat");
99 }
100 public static final String JavaDoc VALIDATIONTYPE_ListValidation = "L";
101 public static final String JavaDoc VALIDATIONTYPE_DataType = "D";
102 public static final String JavaDoc VALIDATIONTYPE_TableValidation = "T";
103 public void setValidationType (String JavaDoc ValidationType)
104 {
105 if (ValidationType.equals("L") || ValidationType.equals("D") || ValidationType.equals("T"));
106  else throw new IllegalArgumentException JavaDoc ("ValidationType Invalid value - Reference_ID=2 - L - D - T");
107 if (ValidationType == null) throw new IllegalArgumentException JavaDoc ("ValidationType is mandatory");
108 setValue ("ValidationType", ValidationType);
109 }
110 public String JavaDoc getValidationType()
111 {
112 return (String JavaDoc)getValue("ValidationType");
113 }
114 }
115
Popular Tags