com.ibm.websphere.samples.scheduler.accountreportejb
Interface Account

All Superinterfaces:
javax.ejb.EJBObject, java.rmi.Remote

public interface Account
extends javax.ejb.EJBObject

Remote interface for the Account EJB


Method Summary
 java.lang.Integer getAccountNumber()
          Gets the account number associated with this account
 java.lang.Double getBalance()
          Gets the balance for this account
 java.lang.String getDescription()
          Gets the description for this account
 java.lang.String getOwnerName()
          Gets the owner of this account
 void setBalance(java.lang.Double newBalance)
          Sets the balance for this account
 void setDescription(java.lang.String description)
          Sets the description for this account.
 void setOwnerName(java.lang.String ownerName)
          Sets the owner name of this account
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

getAccountNumber

java.lang.Integer getAccountNumber()
                                   throws java.rmi.RemoteException
Gets the account number associated with this account

Returns:
The account number associated with this account.
Throws:
java.rmi.RemoteException

getBalance

java.lang.Double getBalance()
                            throws java.rmi.RemoteException
Gets the balance for this account

Returns:
The account balance for this account.
Throws:
java.rmi.RemoteException

setBalance

void setBalance(java.lang.Double newBalance)
                throws java.rmi.RemoteException
Sets the balance for this account

Parameters:
newBalance - The balance to set in this record
Throws:
java.rmi.RemoteException

getDescription

java.lang.String getDescription()
                                throws java.rmi.RemoteException
Gets the description for this account

Returns:
A text description for the account.
Throws:
java.rmi.RemoteException

setDescription

void setDescription(java.lang.String description)
                    throws java.rmi.RemoteException
Sets the description for this account.

Parameters:
description -
Throws:
java.rmi.RemoteException

getOwnerName

java.lang.String getOwnerName()
                              throws java.rmi.RemoteException
Gets the owner of this account

Returns:
The owner name as a String
Throws:
java.rmi.RemoteException

setOwnerName

void setOwnerName(java.lang.String ownerName)
                  throws java.rmi.RemoteException
Sets the owner name of this account

Parameters:
ownerName -
Throws:
java.rmi.RemoteException