KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > stockonline > ejb > entity > interf > AccountHome


1 /*
2  * StockOnline: EJB 1.1 Benchmark.
3  *
4  * Copyright © Commonwealth Scientific and Industrial Research Organisation (CSIRO - www.csiro.au), Australia 2001, 2002, 2003.
5  *
6  * Contact: Paul.Brebner@csiro.au
7  *
8  * This library is free software; you can redistribute it and/or modify it
9  * under the terms of the GNU Lesser General Public License as published by
10  * the Free Software Foundation; either version 2.1 of the License, or any
11  * later version.
12  *
13  * This library is distributed in the hope that it will be useful, but WITHOUT
14  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
16  * for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with this library; if not, write to the Free Software Foundation,
20  * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
21  *
22  * Originally developed for the CSIRO Middleware Technology Evaluation (MTE) Project, by
23  * the Software Architectures and Component Technologies Group, CSIRO Mathematical and Information Sciences
24  * Canberra and Sydney, Australia
25  *
26  * www.cmis.csiro.au/sact/
27  * www.cmis.csiro.au/adsat/mte.htm
28  *
29  * Initial developer(s): Shiping Chen, Paul Brebner, Lei Hu, Shuping Ran, Ian Gorton, Anna Liu.
30  * Contributor(s): ______________________.
31  */

32
33
34 //
35
//
36
// History:
37
// 10/08/2001 Shiping Initial coding based on the existing code
38
//
39
//
40
//
41

42 package stockonline.ejb.entity.interf;
43
44
45 import javax.ejb.*;
46 import java.rmi.RemoteException JavaDoc;
47 import java.sql.*;
48
49
50 /**
51  * This is the home interface for Account.
52  */

53 public interface AccountHome extends EJBHome
54 {
55     /**
56      * This method creates the EJB Object.
57      *
58      * @param sub_name The name of the subscriber
59      * @param sub_address The address of the subscriber
60      * @param sub_credit The initial credit of the subscriber
61      *
62      * @return The newly created EJB Object.
63      */

64     public Account create(String JavaDoc sub_name, String JavaDoc sub_address, int sub_credit) throws CreateException, RemoteException JavaDoc;
65
66     /**
67      * This method creates the EJB Object.
68      *
69      * @param sub_accno The ID of the subscriber
70      * @param sub_name The name of the subscriber
71      * @param sub_address The address of the subscriber
72      * @param sub_credit The initial credit of the subscriber
73      *
74      * @return The newly created EJB Object.
75      */

76     public Account create(int sub_accno, String JavaDoc sub_name, String JavaDoc sub_address, int sub_credit) throws CreateException, RemoteException JavaDoc;
77
78     /**
79      * Finds an Account by its primary Key (Account ID)
80      */

81     public Account findByPrimaryKey(AccountPK key) throws FinderException, RemoteException JavaDoc;
82 }
83
Popular Tags