KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_C_InvoiceTax extends PO
11 {
12 /** Standard Constructor **/
13 public X_C_InvoiceTax (Properties ctx, int C_InvoiceTax_ID)
14 {
15 super (ctx, C_InvoiceTax_ID);
16 /** if (C_InvoiceTax_ID == 0)
17 {
18 setC_Invoice_ID (0);
19 setC_Tax_ID (0);
20 setTaxAmt (Env.ZERO);
21 setTaxBaseAmt (Env.ZERO);
22 }
23  **/

24 }
25 /** Load Constructor **/
26 public X_C_InvoiceTax (Properties ctx, ResultSet rs)
27 {
28 super (ctx, rs);
29 }
30 /** Load Meta Data **/
31 protected POInfo initPO (Properties ctx)
32 {
33 int AD_Table_ID = 334;
34 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
35 return poi;
36 }
37 public String JavaDoc toString()
38 {
39 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_C_InvoiceTax[").append(getID()).append("]");
40 return sb.toString();
41 }
42 void setC_Invoice_ID (int C_Invoice_ID)
43 {
44 setValueNoCheck ("C_Invoice_ID", new Integer JavaDoc(C_Invoice_ID));
45 }
46 public int getC_Invoice_ID()
47 {
48 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Invoice_ID");
49 if (ii == null) return 0;
50 return ii.intValue();
51 }
52 void setC_Tax_ID (int C_Tax_ID)
53 {
54 setValueNoCheck ("C_Tax_ID", new Integer JavaDoc(C_Tax_ID));
55 }
56 public int getC_Tax_ID()
57 {
58 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Tax_ID");
59 if (ii == null) return 0;
60 return ii.intValue();
61 }
62 void setTaxAmt (BigDecimal TaxAmt)
63 {
64 if (TaxAmt == null) throw new IllegalArgumentException JavaDoc ("TaxAmt is mandatory");
65 setValueNoCheck ("TaxAmt", TaxAmt);
66 }
67 public BigDecimal getTaxAmt()
68 {
69 BigDecimal bd = (BigDecimal)getValue("TaxAmt");
70 if (bd == null) return Env.ZERO;
71 return bd;
72 }
73 void setTaxBaseAmt (BigDecimal TaxBaseAmt)
74 {
75 if (TaxBaseAmt == null) throw new IllegalArgumentException JavaDoc ("TaxBaseAmt is mandatory");
76 setValueNoCheck ("TaxBaseAmt", TaxBaseAmt);
77 }
78 public BigDecimal getTaxBaseAmt()
79 {
80 BigDecimal bd = (BigDecimal)getValue("TaxBaseAmt");
81 if (bd == null) return Env.ZERO;
82 return bd;
83 }
84 }
85
Popular Tags