KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_M_AttributeSet extends PO
11 {
12 /** Standard Constructor **/
13 public X_M_AttributeSet (Properties ctx, int M_AttributeSet_ID)
14 {
15 super (ctx, M_AttributeSet_ID);
16 /** if (M_AttributeSet_ID == 0)
17 {
18 setIsGuaranteeDate (false);
19 setIsInstanceAttribute (false);
20 setIsLot (false);
21 setIsSerNo (false);
22 setM_AttributeSet_ID (0);
23 setName (null);
24 }
25  **/

26 }
27 /** Load Constructor **/
28 public X_M_AttributeSet (Properties ctx, ResultSet rs)
29 {
30 super (ctx, rs);
31 }
32 /** Load Meta Data **/
33 protected POInfo initPO (Properties ctx)
34 {
35 int AD_Table_ID = 560;
36 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
37 return poi;
38 }
39 public String JavaDoc toString()
40 {
41 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_M_AttributeSet[").append(getID()).append("]");
42 return sb.toString();
43 }
44 public void setDescription (String JavaDoc Description)
45 {
46 setValue ("Description", Description);
47 }
48 public String JavaDoc getDescription()
49 {
50 return (String JavaDoc)getValue("Description");
51 }
52 public void setGuaranteeDays (int GuaranteeDays)
53 {
54 setValue ("GuaranteeDays", new Integer JavaDoc(GuaranteeDays));
55 }
56 public int getGuaranteeDays()
57 {
58 Integer JavaDoc ii = (Integer JavaDoc)getValue("GuaranteeDays");
59 if (ii == null) return 0;
60 return ii.intValue();
61 }
62 public void setIsGuaranteeDate (boolean IsGuaranteeDate)
63 {
64 setValue ("IsGuaranteeDate", new Boolean JavaDoc(IsGuaranteeDate));
65 }
66 public boolean isGuaranteeDate()
67 {
68 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsGuaranteeDate");
69 if (bb != null) return bb.booleanValue();
70 return false;
71 }
72 public void setIsInstanceAttribute (boolean IsInstanceAttribute)
73 {
74 setValue ("IsInstanceAttribute", new Boolean JavaDoc(IsInstanceAttribute));
75 }
76 public boolean isInstanceAttribute()
77 {
78 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsInstanceAttribute");
79 if (bb != null) return bb.booleanValue();
80 return false;
81 }
82 public void setIsLot (boolean IsLot)
83 {
84 setValue ("IsLot", new Boolean JavaDoc(IsLot));
85 }
86 public boolean isLot()
87 {
88 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsLot");
89 if (bb != null) return bb.booleanValue();
90 return false;
91 }
92 public void setIsSerNo (boolean IsSerNo)
93 {
94 setValue ("IsSerNo", new Boolean JavaDoc(IsSerNo));
95 }
96 public boolean isSerNo()
97 {
98 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsSerNo");
99 if (bb != null) return bb.booleanValue();
100 return false;
101 }
102 void setM_AttributeSet_ID (int M_AttributeSet_ID)
103 {
104 setValueNoCheck ("M_AttributeSet_ID", new Integer JavaDoc(M_AttributeSet_ID));
105 }
106 public int getM_AttributeSet_ID()
107 {
108 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_AttributeSet_ID");
109 if (ii == null) return 0;
110 return ii.intValue();
111 }
112 public void setM_LotCtl_ID (int M_LotCtl_ID)
113 {
114 if (M_LotCtl_ID == 0) setValue ("M_LotCtl_ID", null);
115  else
116 setValue ("M_LotCtl_ID", new Integer JavaDoc(M_LotCtl_ID));
117 }
118 public int getM_LotCtl_ID()
119 {
120 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_LotCtl_ID");
121 if (ii == null) return 0;
122 return ii.intValue();
123 }
124 public void setM_SerNoCtl_ID (int M_SerNoCtl_ID)
125 {
126 if (M_SerNoCtl_ID == 0) setValue ("M_SerNoCtl_ID", null);
127  else
128 setValue ("M_SerNoCtl_ID", new Integer JavaDoc(M_SerNoCtl_ID));
129 }
130 public int getM_SerNoCtl_ID()
131 {
132 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_SerNoCtl_ID");
133 if (ii == null) return 0;
134 return ii.intValue();
135 }
136 public void setName (String JavaDoc Name)
137 {
138 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
139 setValue ("Name", Name);
140 }
141 public String JavaDoc getName()
142 {
143 return (String JavaDoc)getValue("Name");
144 }
145 }
146
Popular Tags