KickJava   Java API By Example, From Geeks To Geeks.

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


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 /**
25  * Bank Account Model
26  *
27  * @author Jorg Janke
28  * @version $Id: MBankAccount.java,v 1.6 2003/09/05 04:59:48 jjanke Exp $
29  */

30 public class MBankAccount extends X_C_BankAccount
31 {
32     /**
33      * Bank Account Model
34      * @param ctx context
35      * @param C_BankAccount_ID bank account
36      */

37     public MBankAccount (Properties ctx, int C_BankAccount_ID)
38     {
39         super (ctx, C_BankAccount_ID);
40         if (C_BankAccount_ID == 0)
41         {
42             setIsDefault (false);
43             setBankAccountType (BANKACCOUNTTYPE_Checking);
44             setCurrentBalance (Env.ZERO);
45             setC_Currency_ID (0);
46             setCreditLimit (Env.ZERO);
47             setC_BankAccount_ID (0);
48         }
49     } // MBankAccount
50

51     /**
52      * Bank Account Model
53      * @param ctx context
54      * @param rs result set
55      */

56     public MBankAccount (Properties ctx, ResultSet rs)
57     {
58         super (ctx, rs);
59     }
60
61     public String JavaDoc toString ()
62     {
63         StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("MBankAccount[")
64             .append (getID())
65             .append("-").append(getAccountNo())
66             .append ("]");
67         return sb.toString ();
68     }
69
70 } // MBankAccount
71
Popular Tags