KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_M_AttributeValue extends PO
11 {
12 /** Standard Constructor **/
13 public X_M_AttributeValue (Properties ctx, int M_AttributeValue_ID)
14 {
15 super (ctx, M_AttributeValue_ID);
16 /** if (M_AttributeValue_ID == 0)
17 {
18 setM_AttributeValue_ID (0);
19 setM_Attribute_ID (0);
20 setName (null);
21 setValue (null);
22 }
23  **/

24 }
25 /** Load Constructor **/
26 public X_M_AttributeValue (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 = 558;
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_M_AttributeValue[").append(getID()).append("]");
40 return sb.toString();
41 }
42 public void setDescription (String JavaDoc Description)
43 {
44 setValue ("Description", Description);
45 }
46 public String JavaDoc getDescription()
47 {
48 return (String JavaDoc)getValue("Description");
49 }
50 void setM_AttributeValue_ID (int M_AttributeValue_ID)
51 {
52 setValueNoCheck ("M_AttributeValue_ID", new Integer JavaDoc(M_AttributeValue_ID));
53 }
54 public int getM_AttributeValue_ID()
55 {
56 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_AttributeValue_ID");
57 if (ii == null) return 0;
58 return ii.intValue();
59 }
60 void setM_Attribute_ID (int M_Attribute_ID)
61 {
62 setValueNoCheck ("M_Attribute_ID", new Integer JavaDoc(M_Attribute_ID));
63 }
64 public int getM_Attribute_ID()
65 {
66 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_Attribute_ID");
67 if (ii == null) return 0;
68 return ii.intValue();
69 }
70 public void setName (String JavaDoc Name)
71 {
72 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
73 setValue ("Name", Name);
74 }
75 public String JavaDoc getName()
76 {
77 return (String JavaDoc)getValue("Name");
78 }
79 public void setValue (String JavaDoc Value)
80 {
81 if (Value == null) throw new IllegalArgumentException JavaDoc ("Value is mandatory");
82 setValue ("Value", Value);
83 }
84 public String JavaDoc getValue()
85 {
86 return (String JavaDoc)getValue("Value");
87 }
88 }
89
Popular Tags