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 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 getId( ) 20 throws java.rmi.RemoteException; 21 22 /** 23 * Deposit money. 24 */ 25 public void deposit( float amount ) 26 throws java.rmi.RemoteException; 27 28 /** 29 * Withdraw money. 30 */ 31 public void withdraw( float amount ) 32 throws java.rmi.RemoteException; 33 34 /** 35 * Owner of this account. 36 */ 37 public test.interfaces.Customer getOwner( ) 38 throws java.rmi.RemoteException; 39 40 /** 41 * Balance of the account. 42 */ 43 public float getBalance( ) 44 throws java.rmi.RemoteException; 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; 51 52 public test.interfaces.AccountValue getAccountValue( ) 53 throws java.rmi.RemoteException; 54 55 public void setAccountValue( test.interfaces.AccountValue value ) 56 throws java.rmi.RemoteException; 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 getGeneratedPrimaryKey( ) 62 throws java.rmi.RemoteException; 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 getCreationDate( ) 68 throws java.rmi.RemoteException; 69 70 public void setCreationDate( java.util.Date creationDate ) 71 throws java.rmi.RemoteException; 72 73 } 74