KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_C_PaySelection extends PO
11 {
12 /** Standard Constructor **/
13 public X_C_PaySelection (Properties ctx, int C_PaySelection_ID)
14 {
15 super (ctx, C_PaySelection_ID);
16 /** if (C_PaySelection_ID == 0)
17 {
18 setC_BankAccount_ID (0);
19 setC_PaySelection_ID (0);
20 setIsApproved (false);
21 setName (null);
22 setPayDate (new Timestamp(System.currentTimeMillis()));
23 setProcessed (false);
24 setProcessing (null);
25 setTotalAmt (Env.ZERO);
26 }
27  **/

28 }
29 /** Load Constructor **/
30 public X_C_PaySelection (Properties ctx, ResultSet rs)
31 {
32 super (ctx, rs);
33 }
34 /** Load Meta Data **/
35 protected POInfo initPO (Properties ctx)
36 {
37 int AD_Table_ID = 426;
38 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
39 return poi;
40 }
41 public String JavaDoc toString()
42 {
43 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_C_PaySelection[").append(getID()).append("]");
44 return sb.toString();
45 }
46 public void setC_BankAccount_ID (int C_BankAccount_ID)
47 {
48 setValue ("C_BankAccount_ID", new Integer JavaDoc(C_BankAccount_ID));
49 }
50 public int getC_BankAccount_ID()
51 {
52 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_BankAccount_ID");
53 if (ii == null) return 0;
54 return ii.intValue();
55 }
56 void setC_PaySelection_ID (int C_PaySelection_ID)
57 {
58 setValueNoCheck ("C_PaySelection_ID", new Integer JavaDoc(C_PaySelection_ID));
59 }
60 public int getC_PaySelection_ID()
61 {
62 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_PaySelection_ID");
63 if (ii == null) return 0;
64 return ii.intValue();
65 }
66 public void setCreateFrom (String JavaDoc CreateFrom)
67 {
68 setValue ("CreateFrom", CreateFrom);
69 }
70 public String JavaDoc getCreateFrom()
71 {
72 return (String JavaDoc)getValue("CreateFrom");
73 }
74 public void setDescription (String JavaDoc Description)
75 {
76 setValue ("Description", Description);
77 }
78 public String JavaDoc getDescription()
79 {
80 return (String JavaDoc)getValue("Description");
81 }
82 public void setIsApproved (boolean IsApproved)
83 {
84 setValue ("IsApproved", new Boolean JavaDoc(IsApproved));
85 }
86 public boolean isApproved()
87 {
88 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsApproved");
89 if (bb != null) return bb.booleanValue();
90 return false;
91 }
92 public void setName (String JavaDoc Name)
93 {
94 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
95 setValue ("Name", Name);
96 }
97 public String JavaDoc getName()
98 {
99 return (String JavaDoc)getValue("Name");
100 }
101 public void setPayDate (Timestamp PayDate)
102 {
103 if (PayDate == null) throw new IllegalArgumentException JavaDoc ("PayDate is mandatory");
104 setValue ("PayDate", PayDate);
105 }
106 public Timestamp getPayDate()
107 {
108 return (Timestamp)getValue("PayDate");
109 }
110 public void setProcessed (boolean Processed)
111 {
112 setValue ("Processed", new Boolean JavaDoc(Processed));
113 }
114 public boolean isProcessed()
115 {
116 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("Processed");
117 if (bb != null) return bb.booleanValue();
118 return false;
119 }
120 public void setProcessing (String JavaDoc Processing)
121 {
122 if (Processing == null) throw new IllegalArgumentException JavaDoc ("Processing is mandatory");
123 setValue ("Processing", Processing);
124 }
125 public String JavaDoc getProcessing()
126 {
127 return (String JavaDoc)getValue("Processing");
128 }
129 public void setTotalAmt (BigDecimal TotalAmt)
130 {
131 if (TotalAmt == null) throw new IllegalArgumentException JavaDoc ("TotalAmt is mandatory");
132 setValue ("TotalAmt", TotalAmt);
133 }
134 public BigDecimal getTotalAmt()
135 {
136 BigDecimal bd = (BigDecimal)getValue("TotalAmt");
137 if (bd == null) return Env.ZERO;
138 return bd;
139 }
140 }
141
Popular Tags