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: * Local interface for Teller.
26: */
27: public interface TellerLocal extends javax.ejb.EJBLocalObject {
28: /**
29: * Describe <code>setUp</code> method here.
30: * @exception EJBException if an error occurs
31: */
32: public void setUp();
33:
34: /**
35: * Describe <code>tearDown</code> method here.
36: * @exception EJBException if an error occurs
37: */
38: public void tearDown();
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:
51: /**
52: * Describe <code>createAccount</code> method here.
53: * @param id a <code>Integer</code> value, id of account
54: * @return an <code>Account</code> value
55: * @exception EJBException if an error occurs
56: */
57: public org.jboss.test.jca.bank.interfaces.Account createAccount(
58: java.lang.Integer id);
59:
60: /**
61: * Describe <code>getAccountBalance</code> method here.
62: * @param id a <code>integer</code> value, id of account
63: * @return an <code>int</code> value, balbance of account
64: * @exception EJBException if an error occurs
65: */
66: public int getAccountBalance(java.lang.Integer id);
67:
68: /**
69: * Describe <code>transferTest</code> method here.
70: * @param from an <code>AccountLocal</code> value
71: * @param to an <code>AccountLocal</code> value
72: * @param amount a <code>float</code> value
73: * @param iter an <code>int</code> value
74: * @exception java.rmi.RemoteException if an error occurs
75: * @exception EJBException if an error occurs
76: */
77: public void transferTest(
78: org.jboss.test.jca.bank.interfaces.AccountLocal from,
79: org.jboss.test.jca.bank.interfaces.AccountLocal to,
80: int amount, int iter);
81:
82: }
|