KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > interfaces > Account


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

4 package test.interfaces;
5
6 /**
7  * Remote 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 Account
14    extends javax.ejb.EJBObject 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       throws java.rmi.RemoteException JavaDoc;
21
22    /**
23     * Deposit money.
24     */

25    public void deposit( float amount )
26       throws java.rmi.RemoteException JavaDoc;
27
28    /**
29     * Withdraw money.
30     */

31    public void withdraw( float amount )
32       throws java.rmi.RemoteException JavaDoc;
33
34    /**
35     * Owner of this account.
36     */

37    public test.interfaces.Customer getOwner( )
38       throws java.rmi.RemoteException JavaDoc;
39
40    /**
41     * Balance of the account.
42     */

43    public float getBalance( )
44       throws java.rmi.RemoteException JavaDoc;
45
46    /**
47     * Generated bulk accessor. This is set as remote to allow clients to get all data in one call.
48     */

49    public test.interfaces.AccountData getData( )
50       throws java.rmi.RemoteException JavaDoc;
51
52    public test.interfaces.AccountValue getAccountValue( )
53       throws java.rmi.RemoteException JavaDoc;
54
55    public void setAccountValue( test.interfaces.AccountValue value )
56       throws java.rmi.RemoteException JavaDoc;
57
58    /**
59     * 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.
60     */

61    public java.lang.Integer JavaDoc getGeneratedPrimaryKey( )
62       throws java.rmi.RemoteException JavaDoc;
63
64    /**
65     * 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>
66     */

67    public java.util.Date JavaDoc getCreationDate( )
68       throws java.rmi.RemoteException JavaDoc;
69
70    public void setCreationDate( java.util.Date JavaDoc creationDate )
71       throws java.rmi.RemoteException JavaDoc;
72
73 }
74
Popular Tags