KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_C_DunningRunEntry extends PO
11 {
12 /** Standard Constructor **/
13 public X_C_DunningRunEntry (Properties ctx, int C_DunningRunEntry_ID)
14 {
15 super (ctx, C_DunningRunEntry_ID);
16 /** if (C_DunningRunEntry_ID == 0)
17 {
18 setAmt (Env.ZERO);
19 setC_BPartner_ID (0);
20 setC_DunningRunEntry_ID (0);
21 setC_DunningRun_ID (0);
22 setQty (Env.ZERO);
23 }
24  **/

25 }
26 /** Load Constructor **/
27 public X_C_DunningRunEntry (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 = 527;
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_C_DunningRunEntry[").append(getID()).append("]");
41 return sb.toString();
42 }
43 public void setAmt (BigDecimal Amt)
44 {
45 if (Amt == null) throw new IllegalArgumentException JavaDoc ("Amt is mandatory");
46 setValue ("Amt", Amt);
47 }
48 public BigDecimal getAmt()
49 {
50 BigDecimal bd = (BigDecimal)getValue("Amt");
51 if (bd == null) return Env.ZERO;
52 return bd;
53 }
54 public void setC_BPartner_ID (int C_BPartner_ID)
55 {
56 setValue ("C_BPartner_ID", new Integer JavaDoc(C_BPartner_ID));
57 }
58 public int getC_BPartner_ID()
59 {
60 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_BPartner_ID");
61 if (ii == null) return 0;
62 return ii.intValue();
63 }
64 void setC_DunningRunEntry_ID (int C_DunningRunEntry_ID)
65 {
66 setValueNoCheck ("C_DunningRunEntry_ID", new Integer JavaDoc(C_DunningRunEntry_ID));
67 }
68 public int getC_DunningRunEntry_ID()
69 {
70 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_DunningRunEntry_ID");
71 if (ii == null) return 0;
72 return ii.intValue();
73 }
74 public void setC_DunningRun_ID (int C_DunningRun_ID)
75 {
76 setValue ("C_DunningRun_ID", new Integer JavaDoc(C_DunningRun_ID));
77 }
78 public int getC_DunningRun_ID()
79 {
80 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_DunningRun_ID");
81 if (ii == null) return 0;
82 return ii.intValue();
83 }
84 public void setQty (BigDecimal Qty)
85 {
86 if (Qty == null) throw new IllegalArgumentException JavaDoc ("Qty is mandatory");
87 setValue ("Qty", Qty);
88 }
89 public BigDecimal getQty()
90 {
91 BigDecimal bd = (BigDecimal)getValue("Qty");
92 if (bd == null) return Env.ZERO;
93 return bd;
94 }
95 }
96
Popular Tags