summaryrefslogtreecommitdiffstats
path: root/Master/Reference Architectures and Patterns/EJB 3.0 Code/Gerald Examples/src/examples/session/stateful_dd/Count.java
blob: f20ae5e73488650a7371cb5083d91573e178db60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package examples.session.stateful_dd;

/**
 * The business interface - a plain Java interface with only business methods.
 */
public interface Count {
    
    /**
     * Increments the counter by 1
     */
    public int count();
    
    /**
     * Sets the counter to val
     * 
     * @param val
     */
    public void set(int val);
    
    /**
     * removes the counter
     */
    public void remove();
}