KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_C_InvoicePaySchedule extends PO
11 {
12 /** Standard Constructor **/
13 public X_C_InvoicePaySchedule (Properties ctx, int C_InvoicePaySchedule_ID)
14 {
15 super (ctx, C_InvoicePaySchedule_ID);
16 /** if (C_InvoicePaySchedule_ID == 0)
17 {
18 setC_InvoicePaySchedule_ID (0);
19 setC_Invoice_ID (0);
20 setDiscountAmt (Env.ZERO);
21 setDiscountDate (new Timestamp(System.currentTimeMillis()));
22 setDueAmt (Env.ZERO);
23 setDueDate (new Timestamp(System.currentTimeMillis()));
24 setIsValid (false);
25 }
26  **/

27 }
28 /** Load Constructor **/
29 public X_C_InvoicePaySchedule (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 = 551;
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_C_InvoicePaySchedule[").append(getID()).append("]");
43 return sb.toString();
44 }
45 void setC_InvoicePaySchedule_ID (int C_InvoicePaySchedule_ID)
46 {
47 setValueNoCheck ("C_InvoicePaySchedule_ID", new Integer JavaDoc(C_InvoicePaySchedule_ID));
48 }
49 public int getC_InvoicePaySchedule_ID()
50 {
51 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_InvoicePaySchedule_ID");
52 if (ii == null) return 0;
53 return ii.intValue();
54 }
55 void setC_Invoice_ID (int C_Invoice_ID)
56 {
57 setValueNoCheck ("C_Invoice_ID", new Integer JavaDoc(C_Invoice_ID));
58 }
59 public int getC_Invoice_ID()
60 {
61 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Invoice_ID");
62 if (ii == null) return 0;
63 return ii.intValue();
64 }
65 void setC_PaySchedule_ID (int C_PaySchedule_ID)
66 {
67 if (C_PaySchedule_ID == 0) setValueNoCheck ("C_PaySchedule_ID", null);
68  else
69 setValueNoCheck ("C_PaySchedule_ID", new Integer JavaDoc(C_PaySchedule_ID));
70 }
71 public int getC_PaySchedule_ID()
72 {
73 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_PaySchedule_ID");
74 if (ii == null) return 0;
75 return ii.intValue();
76 }
77 public void setDiscountAmt (BigDecimal DiscountAmt)
78 {
79 if (DiscountAmt == null) throw new IllegalArgumentException JavaDoc ("DiscountAmt is mandatory");
80 setValue ("DiscountAmt", DiscountAmt);
81 }
82 public BigDecimal getDiscountAmt()
83 {
84 BigDecimal bd = (BigDecimal)getValue("DiscountAmt");
85 if (bd == null) return Env.ZERO;
86 return bd;
87 }
88 public void setDiscountDate (Timestamp DiscountDate)
89 {
90 if (DiscountDate == null) throw new IllegalArgumentException JavaDoc ("DiscountDate is mandatory");
91 setValue ("DiscountDate", DiscountDate);
92 }
93 public Timestamp getDiscountDate()
94 {
95 return (Timestamp)getValue("DiscountDate");
96 }
97 public void setDueAmt (BigDecimal DueAmt)
98 {
99 if (DueAmt == null) throw new IllegalArgumentException JavaDoc ("DueAmt is mandatory");
100 setValue ("DueAmt", DueAmt);
101 }
102 public BigDecimal getDueAmt()
103 {
104 BigDecimal bd = (BigDecimal)getValue("DueAmt");
105 if (bd == null) return Env.ZERO;
106 return bd;
107 }
108 public void setDueDate (Timestamp DueDate)
109 {
110 if (DueDate == null) throw new IllegalArgumentException JavaDoc ("DueDate is mandatory");
111 setValue ("DueDate", DueDate);
112 }
113 public Timestamp getDueDate()
114 {
115 return (Timestamp)getValue("DueDate");
116 }
117 public void setIsValid (boolean IsValid)
118 {
119 setValue ("IsValid", new Boolean JavaDoc(IsValid));
120 }
121 public boolean isValid()
122 {
123 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsValid");
124 if (bb != null) return bb.booleanValue();
125 return false;
126 }
127 }
128
Popular Tags