KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_C_PaymentBatch extends PO
11 {
12 /** Standard Constructor **/
13 public X_C_PaymentBatch (Properties ctx, int C_PaymentBatch_ID)
14 {
15 super (ctx, C_PaymentBatch_ID);
16 /** if (C_PaymentBatch_ID == 0)
17 {
18 setC_PaymentBatch_ID (0);
19 setC_PaymentProcessor_ID (0);
20 setName (null);
21 setProcessed (false);
22 setProcessing (null);
23 }
24  **/

25 }
26 /** Load Constructor **/
27 public X_C_PaymentBatch (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 = 411;
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_PaymentBatch[").append(getID()).append("]");
41 return sb.toString();
42 }
43 void setC_PaymentBatch_ID (int C_PaymentBatch_ID)
44 {
45 setValueNoCheck ("C_PaymentBatch_ID", new Integer JavaDoc(C_PaymentBatch_ID));
46 }
47 public int getC_PaymentBatch_ID()
48 {
49 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_PaymentBatch_ID");
50 if (ii == null) return 0;
51 return ii.intValue();
52 }
53 public void setC_PaymentProcessor_ID (int C_PaymentProcessor_ID)
54 {
55 setValue ("C_PaymentProcessor_ID", new Integer JavaDoc(C_PaymentProcessor_ID));
56 }
57 public int getC_PaymentProcessor_ID()
58 {
59 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_PaymentProcessor_ID");
60 if (ii == null) return 0;
61 return ii.intValue();
62 }
63 public void setDocumentNo (String JavaDoc DocumentNo)
64 {
65 setValue ("DocumentNo", DocumentNo);
66 }
67 public String JavaDoc getDocumentNo()
68 {
69 return (String JavaDoc)getValue("DocumentNo");
70 }
71 public void setName (String JavaDoc Name)
72 {
73 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
74 setValue ("Name", Name);
75 }
76 public String JavaDoc getName()
77 {
78 return (String JavaDoc)getValue("Name");
79 }
80 public void setProcessed (boolean Processed)
81 {
82 setValue ("Processed", new Boolean JavaDoc(Processed));
83 }
84 public boolean isProcessed()
85 {
86 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("Processed");
87 if (bb != null) return bb.booleanValue();
88 return false;
89 }
90 public void setProcessing (String JavaDoc Processing)
91 {
92 if (Processing == null) throw new IllegalArgumentException JavaDoc ("Processing is mandatory");
93 setValue ("Processing", Processing);
94 }
95 public String JavaDoc getProcessing()
96 {
97 return (String JavaDoc)getValue("Processing");
98 }
99 public void setProcessingDate (Timestamp ProcessingDate)
100 {
101 setValue ("ProcessingDate", ProcessingDate);
102 }
103 public Timestamp getProcessingDate()
104 {
105 return (Timestamp)getValue("ProcessingDate");
106 }
107 }
108
Popular Tags