01: /*
02: * JBoss, Home of Professional Open Source.
03: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
04: * as indicated by the @author tags. See the copyright.txt file in the
05: * distribution for a full listing of individual contributors.
06: *
07: * This is free software; you can redistribute it and/or modify it
08: * under the terms of the GNU Lesser General Public License as
09: * published by the Free Software Foundation; either version 2.1 of
10: * the License, or (at your option) any later version.
11: *
12: * This software is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * Lesser General Public License for more details.
16: *
17: * You should have received a copy of the GNU Lesser General Public
18: * License along with this software; if not, write to the Free
19: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21: */
22: package org.jboss.test.jca.bank.interfaces;
23:
24: /**
25: * Remote interface for Teller.
26: */
27: public interface Teller extends javax.ejb.EJBObject {
28: /**
29: * Describe <code>setUp</code> method here.
30: * @exception EJBException if an error occurs
31: */
32: public void setUp() throws java.rmi.RemoteException;
33:
34: /**
35: * Describe <code>tearDown</code> method here.
36: * @exception EJBException if an error occurs
37: */
38: public void tearDown() throws java.rmi.RemoteException;
39:
40: /**
41: * Describe <code>transfer</code> method here.
42: * @param from an <code>Account</code> value
43: * @param to an <code>Account</code> value
44: * @param amount a <code>float</code> value
45: * @exception EJBException if an error occurs
46: */
47: public void transfer(
48: org.jboss.test.jca.bank.interfaces.Account from,
49: org.jboss.test.jca.bank.interfaces.Account to, int amount)
50: throws java.rmi.RemoteException;
51:
52: /**
53: * Describe <code>createAccount</code> method here.
54: * @param id a <code>Integer</code> value, id of account
55: * @return an <code>Account</code> value
56: * @exception EJBException if an error occurs
57: */
58: public org.jboss.test.jca.bank.interfaces.Account createAccount(
59: java.lang.Integer id) throws java.rmi.RemoteException;
60:
61: /**
62: * Describe <code>getAccountBalance</code> method here.
63: * @param id a <code>integer</code> value, id of account
64: * @return an <code>int</code> value, balbance of account
65: * @exception EJBException if an error occurs
66: */
67: public int getAccountBalance(java.lang.Integer id)
68: throws java.rmi.RemoteException;
69:
70: /**
71: * Describe <code>transferTest</code> method here.
72: * @param from an <code>AccountLocal</code> value
73: * @param to an <code>AccountLocal</code> value
74: * @param amount a <code>float</code> value
75: * @param iter an <code>int</code> value
76: * @exception java.rmi.RemoteException if an error occurs
77: * @exception EJBException if an error occurs
78: */
79: public void transferTest(
80: org.jboss.test.jca.bank.interfaces.AccountLocal from,
81: org.jboss.test.jca.bank.interfaces.AccountLocal to,
82: int amount, int iter) throws java.rmi.RemoteException;
83:
84: }
|