KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > interfaces > AccountLocal


1 /*
2  * Generated by XDoclet - Do not edit!
3  */

4 package test.interfaces;
5
6 /**
7  * Local interface for Account.
8  * @xdoclet-generated at 16-04-05
9  * @copyright The XDoclet Team
10  * @author XDoclet
11  * @version 1.2.3
12  */

13 public interface AccountLocal
14    extends javax.ejb.EJBLocalObject JavaDoc
15 {
16    /**
17     * Id of this account. This is not remote since the primary key can be extracted by other means.
18     */

19    public java.lang.Integer JavaDoc getId( ) ;
20
21    /**
22     * Deposit money.
23     */

24    public void deposit( float amount ) ;
25
26    /**
27     * Withdraw money.
28     */

29    public void withdraw( float amount ) ;
30
31    /**
32     * Owner of this account.
33     */

34    public test.interfaces.Customer getOwner( ) ;
35
36    /**
37     * Balance of the account.
38     */

39    public float getBalance( ) ;
40
41    /**
42     * Generated bulk accessor. This is set as remote to allow clients to get all data in one call.
43     */

44    public test.interfaces.AccountData getData( ) ;
45
46    public test.interfaces.AccountValue getAccountValue( ) ;
47
48    public void setAccountValue( test.interfaces.AccountValue value ) ;
49
50    /**
51     * This is to get the unknown primary key. We just get the primary key from the entity context and cast it to the "known" class.
52     */

53    public java.lang.Integer JavaDoc getGeneratedPrimaryKey( ) ;
54
55    /**
56     * The creation-date of the entity. This field is purely to track when this entity was created, and should be set in ejbCreate (<code>setCreationDate(new Date());</code>. It is not included in the value object. <p>We use the qualified name here because XDoclet doesn't copy imports from base classes into the generated interfaces.</p>
57     */

58    public java.util.Date JavaDoc getCreationDate( ) ;
59
60    public void setCreationDate( java.util.Date JavaDoc creationDate ) ;
61
62 }
63
Popular Tags