KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_C_CommissionDetail extends PO
11 {
12 /** Standard Constructor **/
13 public X_C_CommissionDetail (Properties ctx, int C_CommissionDetail_ID)
14 {
15 super (ctx, C_CommissionDetail_ID);
16 /** if (C_CommissionDetail_ID == 0)
17 {
18 setActualAmt (Env.ZERO);
19 setActualQty (Env.ZERO);
20 setC_CommissionAmt_ID (0);
21 setC_CommissionDetail_ID (0);
22 setC_Currency_ID (0);
23 setConvertedAmt (Env.ZERO);
24 }
25  **/

26 }
27 /** Load Constructor **/
28 public X_C_CommissionDetail (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 = 437;
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_C_CommissionDetail[").append(getID()).append("]");
42 return sb.toString();
43 }
44 public void setActualAmt (BigDecimal ActualAmt)
45 {
46 if (ActualAmt == null) throw new IllegalArgumentException JavaDoc ("ActualAmt is mandatory");
47 setValue ("ActualAmt", ActualAmt);
48 }
49 public BigDecimal getActualAmt()
50 {
51 BigDecimal bd = (BigDecimal)getValue("ActualAmt");
52 if (bd == null) return Env.ZERO;
53 return bd;
54 }
55 public void setActualQty (BigDecimal ActualQty)
56 {
57 if (ActualQty == null) throw new IllegalArgumentException JavaDoc ("ActualQty is mandatory");
58 setValue ("ActualQty", ActualQty);
59 }
60 public BigDecimal getActualQty()
61 {
62 BigDecimal bd = (BigDecimal)getValue("ActualQty");
63 if (bd == null) return Env.ZERO;
64 return bd;
65 }
66 void setC_CommissionAmt_ID (int C_CommissionAmt_ID)
67 {
68 setValueNoCheck ("C_CommissionAmt_ID", new Integer JavaDoc(C_CommissionAmt_ID));
69 }
70 public int getC_CommissionAmt_ID()
71 {
72 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_CommissionAmt_ID");
73 if (ii == null) return 0;
74 return ii.intValue();
75 }
76 void setC_CommissionDetail_ID (int C_CommissionDetail_ID)
77 {
78 setValueNoCheck ("C_CommissionDetail_ID", new Integer JavaDoc(C_CommissionDetail_ID));
79 }
80 public int getC_CommissionDetail_ID()
81 {
82 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_CommissionDetail_ID");
83 if (ii == null) return 0;
84 return ii.intValue();
85 }
86 public void setC_Currency_ID (int C_Currency_ID)
87 {
88 setValue ("C_Currency_ID", new Integer JavaDoc(C_Currency_ID));
89 }
90 public int getC_Currency_ID()
91 {
92 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Currency_ID");
93 if (ii == null) return 0;
94 return ii.intValue();
95 }
96 void setC_InvoiceLine_ID (int C_InvoiceLine_ID)
97 {
98 if (C_InvoiceLine_ID == 0) setValueNoCheck ("C_InvoiceLine_ID", null);
99  else
100 setValueNoCheck ("C_InvoiceLine_ID", new Integer JavaDoc(C_InvoiceLine_ID));
101 }
102 public int getC_InvoiceLine_ID()
103 {
104 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_InvoiceLine_ID");
105 if (ii == null) return 0;
106 return ii.intValue();
107 }
108 void setC_OrderLine_ID (int C_OrderLine_ID)
109 {
110 if (C_OrderLine_ID == 0) setValueNoCheck ("C_OrderLine_ID", null);
111  else
112 setValueNoCheck ("C_OrderLine_ID", new Integer JavaDoc(C_OrderLine_ID));
113 }
114 public int getC_OrderLine_ID()
115 {
116 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_OrderLine_ID");
117 if (ii == null) return 0;
118 return ii.intValue();
119 }
120 public void setConvertedAmt (BigDecimal ConvertedAmt)
121 {
122 if (ConvertedAmt == null) throw new IllegalArgumentException JavaDoc ("ConvertedAmt is mandatory");
123 setValue ("ConvertedAmt", ConvertedAmt);
124 }
125 public BigDecimal getConvertedAmt()
126 {
127 BigDecimal bd = (BigDecimal)getValue("ConvertedAmt");
128 if (bd == null) return Env.ZERO;
129 return bd;
130 }
131 public void setInfo (String JavaDoc Info)
132 {
133 setValue ("Info", Info);
134 }
135 public String JavaDoc getInfo()
136 {
137 return (String JavaDoc)getValue("Info");
138 }
139 public void setReference (String JavaDoc Reference)
140 {
141 setValue ("Reference", Reference);
142 }
143 public String JavaDoc getReference()
144 {
145 return (String JavaDoc)getValue("Reference");
146 }
147 }
148
Popular Tags