KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_C_Bank extends PO
11 {
12 /** Standard Constructor **/
13 public X_C_Bank (Properties ctx, int C_Bank_ID)
14 {
15 super (ctx, C_Bank_ID);
16 /** if (C_Bank_ID == 0)
17 {
18 setC_Bank_ID (0);
19 setIsOwnBank (false);
20 setName (null);
21 setRoutingNo (null);
22 }
23  **/

24 }
25 /** Load Constructor **/
26 public X_C_Bank (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 = 296;
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_Bank[").append(getID()).append("]");
40 return sb.toString();
41 }
42 void setC_Bank_ID (int C_Bank_ID)
43 {
44 setValueNoCheck ("C_Bank_ID", new Integer JavaDoc(C_Bank_ID));
45 }
46 public int getC_Bank_ID()
47 {
48 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Bank_ID");
49 if (ii == null) return 0;
50 return ii.intValue();
51 }
52 public void setC_Location_ID (int C_Location_ID)
53 {
54 if (C_Location_ID == 0) setValue ("C_Location_ID", null);
55  else
56 setValue ("C_Location_ID", new Integer JavaDoc(C_Location_ID));
57 }
58 public int getC_Location_ID()
59 {
60 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Location_ID");
61 if (ii == null) return 0;
62 return ii.intValue();
63 }
64 public void setIsOwnBank (boolean IsOwnBank)
65 {
66 setValue ("IsOwnBank", new Boolean JavaDoc(IsOwnBank));
67 }
68 public boolean isOwnBank()
69 {
70 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsOwnBank");
71 if (bb != null) return bb.booleanValue();
72 return false;
73 }
74 public void setName (String JavaDoc Name)
75 {
76 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
77 setValue ("Name", Name);
78 }
79 public String JavaDoc getName()
80 {
81 return (String JavaDoc)getValue("Name");
82 }
83 public void setRoutingNo (String JavaDoc RoutingNo)
84 {
85 if (RoutingNo == null) throw new IllegalArgumentException JavaDoc ("RoutingNo is mandatory");
86 setValue ("RoutingNo", RoutingNo);
87 }
88 public String JavaDoc getRoutingNo()
89 {
90 return (String JavaDoc)getValue("RoutingNo");
91 }
92 public void setSwiftCode (String JavaDoc SwiftCode)
93 {
94 setValue ("SwiftCode", SwiftCode);
95 }
96 public String JavaDoc getSwiftCode()
97 {
98 return (String JavaDoc)getValue("SwiftCode");
99 }
100 }
101
Popular Tags