01: /**
02: * Title: EJOSA - Enterprise Java Open Source Architecture
03: * My Piggy Bank Example
04: * Description: Specification Object
05: * Copyright: Copyright (c) 2003 by B. Lofi Dewanto, T. Menzel
06: * Company: University of Muenster, HTWK Leipzig
07: * @author B. Lofi Dewanto, T. Menzel
08: * @version 1.2
09: */package net.sourceforge.ejosa.piggybank.spec.system;
10:
11: import java.util.*;
12:
13: import net.sourceforge.ejosa.piggybank.spec.*;
14: import net.sourceforge.ejosa.piggybank.spec.business.*;
15:
16: /**
17: * The workflow object interface.
18: *
19: * @author B. Lofi Dewanto, T. Menzel
20: * @version 1.2
21: */
22: public interface CoinManager {
23: /*========================= CRDU Methods ============================*/
24:
25: /**
26: * Create a coin
27: *
28: * @param Coin
29: * @exception CoinException
30: */
31: public void createCoin(Coin coin) throws CoinException;
32:
33: /**
34: * Update a coin
35: *
36: * @param Coin
37: * @exception CoinException
38: */
39: public void updateCoin(Coin coin) throws CoinException;
40:
41: /**
42: * Remove a coin
43: *
44: * @param id of the coin
45: * @exception CoinException
46: */
47: public void removeCoin(String id) throws CoinException;
48:
49: /*========================= Find Methods ============================*/
50:
51: /**
52: * Find all coins
53: *
54: * @return collection of coins
55: * @exception CoinException
56: */
57: public Vector findAllCoins() throws CoinException;
58:
59: /*========================= Use Case Methods ============================*/
60: /*========================= Relationship Methods ============================*/
61: }
|