KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_C_CommissionRun extends PO
11 {
12 /** Standard Constructor **/
13 public X_C_CommissionRun (Properties ctx, int C_CommissionRun_ID)
14 {
15 super (ctx, C_CommissionRun_ID);
16 /** if (C_CommissionRun_ID == 0)
17 {
18 setC_CommissionRun_ID (0);
19 setC_Commission_ID (0);
20 setDocumentNo (null);
21 setGrandTotal (Env.ZERO);
22 setProcessed (false);
23 setStartDate (new Timestamp(System.currentTimeMillis()));
24 }
25  **/

26 }
27 /** Load Constructor **/
28 public X_C_CommissionRun (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 = 436;
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_CommissionRun[").append(getID()).append("]");
42 return sb.toString();
43 }
44 void setC_CommissionRun_ID (int C_CommissionRun_ID)
45 {
46 setValueNoCheck ("C_CommissionRun_ID", new Integer JavaDoc(C_CommissionRun_ID));
47 }
48 public int getC_CommissionRun_ID()
49 {
50 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_CommissionRun_ID");
51 if (ii == null) return 0;
52 return ii.intValue();
53 }
54 void setC_Commission_ID (int C_Commission_ID)
55 {
56 setValueNoCheck ("C_Commission_ID", new Integer JavaDoc(C_Commission_ID));
57 }
58 public int getC_Commission_ID()
59 {
60 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Commission_ID");
61 if (ii == null) return 0;
62 return ii.intValue();
63 }
64 public void setDescription (String JavaDoc Description)
65 {
66 setValue ("Description", Description);
67 }
68 public String JavaDoc getDescription()
69 {
70 return (String JavaDoc)getValue("Description");
71 }
72 public void setDocumentNo (String JavaDoc DocumentNo)
73 {
74 if (DocumentNo == null) throw new IllegalArgumentException JavaDoc ("DocumentNo is mandatory");
75 setValue ("DocumentNo", DocumentNo);
76 }
77 public String JavaDoc getDocumentNo()
78 {
79 return (String JavaDoc)getValue("DocumentNo");
80 }
81 void setGrandTotal (BigDecimal GrandTotal)
82 {
83 if (GrandTotal == null) throw new IllegalArgumentException JavaDoc ("GrandTotal is mandatory");
84 setValueNoCheck ("GrandTotal", GrandTotal);
85 }
86 public BigDecimal getGrandTotal()
87 {
88 BigDecimal bd = (BigDecimal)getValue("GrandTotal");
89 if (bd == null) return Env.ZERO;
90 return bd;
91 }
92 public void setProcessed (boolean Processed)
93 {
94 setValue ("Processed", new Boolean JavaDoc(Processed));
95 }
96 public boolean isProcessed()
97 {
98 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("Processed");
99 if (bb != null) return bb.booleanValue();
100 return false;
101 }
102 public void setProcessing (String JavaDoc Processing)
103 {
104 setValue ("Processing", Processing);
105 }
106 public String JavaDoc getProcessing()
107 {
108 return (String JavaDoc)getValue("Processing");
109 }
110 public void setStartDate (Timestamp StartDate)
111 {
112 if (StartDate == null) throw new IllegalArgumentException JavaDoc ("StartDate is mandatory");
113 setValue ("StartDate", StartDate);
114 }
115 public Timestamp getStartDate()
116 {
117 return (Timestamp)getValue("StartDate");
118 }
119 }
120
Popular Tags