KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_R_ResourcePlanCost extends PO
11 {
12 /** Standard Constructor **/
13 public X_R_ResourcePlanCost (Properties ctx, int R_ResourcePlanCost_ID)
14 {
15 super (ctx, R_ResourcePlanCost_ID);
16 /** if (R_ResourcePlanCost_ID == 0)
17 {
18 setC_AcctSchema_ID (0);
19 setC_CostType_ID (0);
20 setPlanCost (Env.ZERO);
21 setR_ResourcePlanCost_ID (0);
22 setS_Resource_ID (0);
23 }
24  **/

25 }
26 /** Load Constructor **/
27 public X_R_ResourcePlanCost (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 = 582;
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_R_ResourcePlanCost[").append(getID()).append("]");
41 return sb.toString();
42 }
43 public void setC_AcctSchema_ID (int C_AcctSchema_ID)
44 {
45 setValue ("C_AcctSchema_ID", new Integer JavaDoc(C_AcctSchema_ID));
46 }
47 public int getC_AcctSchema_ID()
48 {
49 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_AcctSchema_ID");
50 if (ii == null) return 0;
51 return ii.intValue();
52 }
53 public void setC_CostType_ID (int C_CostType_ID)
54 {
55 setValue ("C_CostType_ID", new Integer JavaDoc(C_CostType_ID));
56 }
57 public int getC_CostType_ID()
58 {
59 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_CostType_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 void setHelp (String JavaDoc Help)
72 {
73 setValue ("Help", Help);
74 }
75 public String JavaDoc getHelp()
76 {
77 return (String JavaDoc)getValue("Help");
78 }
79 public void setPlanCost (BigDecimal PlanCost)
80 {
81 if (PlanCost == null) throw new IllegalArgumentException JavaDoc ("PlanCost is mandatory");
82 setValue ("PlanCost", PlanCost);
83 }
84 public BigDecimal getPlanCost()
85 {
86 BigDecimal bd = (BigDecimal)getValue("PlanCost");
87 if (bd == null) return Env.ZERO;
88 return bd;
89 }
90 void setR_ResourcePlanCost_ID (int R_ResourcePlanCost_ID)
91 {
92 setValueNoCheck ("R_ResourcePlanCost_ID", new Integer JavaDoc(R_ResourcePlanCost_ID));
93 }
94 public int getR_ResourcePlanCost_ID()
95 {
96 Integer JavaDoc ii = (Integer JavaDoc)getValue("R_ResourcePlanCost_ID");
97 if (ii == null) return 0;
98 return ii.intValue();
99 }
100 void setS_Resource_ID (int S_Resource_ID)
101 {
102 setValueNoCheck ("S_Resource_ID", new Integer JavaDoc(S_Resource_ID));
103 }
104 public int getS_Resource_ID()
105 {
106 Integer JavaDoc ii = (Integer JavaDoc)getValue("S_Resource_ID");
107 if (ii == null) return 0;
108 return ii.intValue();
109 }
110 }
111
Popular Tags