KickJava   Java API By Example, From Geeks To Geeks.

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


1 /******************************************************************************
2  * The contents of this file are subject to the Compiere License Version 1.1
3  * ("License"); You may not use this file except in compliance with the License
4  * You may obtain a copy of the License at http://www.compiere.org/license.html
5  * Software distributed under the License is distributed on an "AS IS" basis,
6  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
7  * the specific language governing rights and limitations under the License.
8  * The Original Code is Compiere ERP & CRM Smart Business Solution
9  * The Initial Developer of the Original Code is Jorg Janke and ComPiere, Inc.
10  * Portions created by Jorg Janke are Copyright (C) 1999-2003 Jorg Janke, parts
11  * created by ComPiere are Copyright (C) ComPiere, Inc.; All Rights Reserved.
12  * Contributor(s): ______________________________________.
13  *****************************************************************************/

14 package org.compiere.model;
15
16 import java.util.*;
17 import java.sql.*;
18 import java.math.*;
19 import java.io.Serializable JavaDoc;
20
21 import org.compiere.util.*;
22
23 /**
24  * BP Bank Account Model
25  *
26  * @author Jorg Janke
27  * @version $Id: MBP_BankAccount.java,v 1.7 2003/06/21 03:16:25 jjanke Exp $
28  */

29 public class MBP_BankAccount extends X_C_BP_BankAccount
30 {
31     /**
32      * Constructor
33      * @param ctx context
34      * @param C_BP_BankAccount_ID BP bank account
35      */

36     public MBP_BankAccount (Properties ctx, int C_BP_BankAccount_ID)
37     {
38         super (ctx, C_BP_BankAccount_ID);
39         if (C_BP_BankAccount_ID == 0)
40         {
41         // setC_BPartner_ID (0);
42
setIsACH (false);
43         }
44     } // MBP_BankAccount
45

46     /**
47      * Constructor
48      * @param ctx context
49      * @param rs result set
50      */

51     public MBP_BankAccount (Properties ctx, ResultSet rs)
52     {
53         super (ctx, rs);
54     } // MBP_BankAccount
55

56     /**
57      * Constructor
58      * @param ctx context
59      * @param bp BP
60      * @param bpc BP Contact
61      * @param l Location
62      */

63     public MBP_BankAccount (Properties ctx, MBPartner bp, MUser bpc, MLocation l)
64     {
65         super (ctx, 0);
66         setIsACH (false);
67         //
68
setC_BPartner_ID(bp.getC_BPartner_ID());
69         //
70
setA_Name(bpc.getName());
71         setA_EMail(bpc.getEmail());
72         //
73
setA_Street(l.getAddress1());
74         setA_City(l.getCity());
75         setA_Zip(l.getPostal());
76         setA_State(l.getRegionName());
77         setA_Country(l.getCountryName());
78     } // MBP_BankAccount
79

80
81     /*************************************************************************/
82
83     /**
84      * String Representation
85      * @return info
86      */

87     public String JavaDoc toString ()
88     {
89         StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("MBP_BankAccount[")
90             .append (getID ())
91             .append(", Name=").append(getA_Name())
92             .append ("]");
93         return sb.toString ();
94     } // toString
95

96 } // MBP_BankAccount
97
Popular Tags