KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_C_BankAccountDoc extends PO
11 {
12 /** Standard Constructor **/
13 public X_C_BankAccountDoc (Properties ctx, int C_BankAccountDoc_ID)
14 {
15 super (ctx, C_BankAccountDoc_ID);
16 /** if (C_BankAccountDoc_ID == 0)
17 {
18 setC_BankAccountDoc_ID (0);
19 setC_BankAccount_ID (0);
20 setCurrentNext (0);
21 setName (null);
22 setPaymentRule (null);
23 }
24  **/

25 }
26 /** Load Constructor **/
27 public X_C_BankAccountDoc (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 = 455;
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_BankAccountDoc[").append(getID()).append("]");
41 return sb.toString();
42 }
43 void setC_BankAccountDoc_ID (int C_BankAccountDoc_ID)
44 {
45 setValueNoCheck ("C_BankAccountDoc_ID", new Integer JavaDoc(C_BankAccountDoc_ID));
46 }
47 public int getC_BankAccountDoc_ID()
48 {
49 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_BankAccountDoc_ID");
50 if (ii == null) return 0;
51 return ii.intValue();
52 }
53 void setC_BankAccount_ID (int C_BankAccount_ID)
54 {
55 setValueNoCheck ("C_BankAccount_ID", new Integer JavaDoc(C_BankAccount_ID));
56 }
57 public int getC_BankAccount_ID()
58 {
59 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_BankAccount_ID");
60 if (ii == null) return 0;
61 return ii.intValue();
62 }
63 public void setCheck_PrintFormat_ID (int Check_PrintFormat_ID)
64 {
65 if (Check_PrintFormat_ID == 0) setValue ("Check_PrintFormat_ID", null);
66  else
67 setValue ("Check_PrintFormat_ID", new Integer JavaDoc(Check_PrintFormat_ID));
68 }
69 public int getCheck_PrintFormat_ID()
70 {
71 Integer JavaDoc ii = (Integer JavaDoc)getValue("Check_PrintFormat_ID");
72 if (ii == null) return 0;
73 return ii.intValue();
74 }
75 public void setCurrentNext (int CurrentNext)
76 {
77 setValue ("CurrentNext", new Integer JavaDoc(CurrentNext));
78 }
79 public int getCurrentNext()
80 {
81 Integer JavaDoc ii = (Integer JavaDoc)getValue("CurrentNext");
82 if (ii == null) return 0;
83 return ii.intValue();
84 }
85 public void setDescription (String JavaDoc Description)
86 {
87 setValue ("Description", Description);
88 }
89 public String JavaDoc getDescription()
90 {
91 return (String JavaDoc)getValue("Description");
92 }
93 public void setName (String JavaDoc Name)
94 {
95 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
96 setValue ("Name", Name);
97 }
98 public String JavaDoc getName()
99 {
100 return (String JavaDoc)getValue("Name");
101 }
102 public static final String JavaDoc PAYMENTRULE_Cash = "B";
103 public static final String JavaDoc PAYMENTRULE_CreditCard = "K";
104 public static final String JavaDoc PAYMENTRULE_TransferACH = "T";
105 public static final String JavaDoc PAYMENTRULE_Check = "S";
106 public static final String JavaDoc PAYMENTRULE_OnCredit = "P";
107 public void setPaymentRule (String JavaDoc PaymentRule)
108 {
109 if (PaymentRule.equals("B") || PaymentRule.equals("K") || PaymentRule.equals("T") || PaymentRule.equals("S") || PaymentRule.equals("P"));
110  else throw new IllegalArgumentException JavaDoc ("PaymentRule Invalid value - Reference_ID=195 - B - K - T - S - P");
111 if (PaymentRule == null) throw new IllegalArgumentException JavaDoc ("PaymentRule is mandatory");
112 setValue ("PaymentRule", PaymentRule);
113 }
114 public String JavaDoc getPaymentRule()
115 {
116 return (String JavaDoc)getValue("PaymentRule");
117 }
118 }
119
Popular Tags