KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_S_ExpenseType extends PO
11 {
12 /** Standard Constructor **/
13 public X_S_ExpenseType (Properties ctx, int S_ExpenseType_ID)
14 {
15 super (ctx, S_ExpenseType_ID);
16 /** if (S_ExpenseType_ID == 0)
17 {
18 setC_TaxCategory_ID (0);
19 setC_UOM_ID (0);
20 setIsInvoiced (false);
21 setM_Product_Category_ID (0);
22 setName (null);
23 setS_ExpenseType_ID (0);
24 setValue (null);
25 }
26  **/

27 }
28 /** Load Constructor **/
29 public X_S_ExpenseType (Properties ctx, ResultSet rs)
30 {
31 super (ctx, rs);
32 }
33 /** Load Meta Data **/
34 protected POInfo initPO (Properties ctx)
35 {
36 int AD_Table_ID = 481;
37 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
38 return poi;
39 }
40 public String JavaDoc toString()
41 {
42 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_S_ExpenseType[").append(getID()).append("]");
43 return sb.toString();
44 }
45 public void setC_TaxCategory_ID (int C_TaxCategory_ID)
46 {
47 setValue ("C_TaxCategory_ID", new Integer JavaDoc(C_TaxCategory_ID));
48 }
49 public int getC_TaxCategory_ID()
50 {
51 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_TaxCategory_ID");
52 if (ii == null) return 0;
53 return ii.intValue();
54 }
55 public void setC_UOM_ID (int C_UOM_ID)
56 {
57 setValue ("C_UOM_ID", new Integer JavaDoc(C_UOM_ID));
58 }
59 public int getC_UOM_ID()
60 {
61 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_UOM_ID");
62 if (ii == null) return 0;
63 return ii.intValue();
64 }
65 public void setDescription (String JavaDoc Description)
66 {
67 setValue ("Description", Description);
68 }
69 public String JavaDoc getDescription()
70 {
71 return (String JavaDoc)getValue("Description");
72 }
73 public void setIsInvoiced (boolean IsInvoiced)
74 {
75 setValue ("IsInvoiced", new Boolean JavaDoc(IsInvoiced));
76 }
77 public boolean isInvoiced()
78 {
79 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsInvoiced");
80 if (bb != null) return bb.booleanValue();
81 return false;
82 }
83 public void setM_Product_Category_ID (int M_Product_Category_ID)
84 {
85 setValue ("M_Product_Category_ID", new Integer JavaDoc(M_Product_Category_ID));
86 }
87 public int getM_Product_Category_ID()
88 {
89 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_Product_Category_ID");
90 if (ii == null) return 0;
91 return ii.intValue();
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 void setS_ExpenseType_ID (int S_ExpenseType_ID)
103 {
104 setValueNoCheck ("S_ExpenseType_ID", new Integer JavaDoc(S_ExpenseType_ID));
105 }
106 public int getS_ExpenseType_ID()
107 {
108 Integer JavaDoc ii = (Integer JavaDoc)getValue("S_ExpenseType_ID");
109 if (ii == null) return 0;
110 return ii.intValue();
111 }
112 public void setValue (String JavaDoc Value)
113 {
114 if (Value == null) throw new IllegalArgumentException JavaDoc ("Value is mandatory");
115 setValue ("Value", Value);
116 }
117 public String JavaDoc getValue()
118 {
119 return (String JavaDoc)getValue("Value");
120 }
121 }
122
Popular Tags