com.sun.j2ee.blueprints.customer.customer.ejb
Interface Customer


public interface Customer
extends javax.ejb.EJBObject

This is the session facade for the customer component. This is implemented as a session bean which exports interfaces of the Account and order components


Method Summary
 void changeContactInformation(ContactInformation info)
          updates the contact information for the specified account
 boolean createAccount(java.lang.String userId, java.lang.String status, ContactInformation info)
          Create interface of AccountHome component
 int createOrder(java.util.Collection lineItems, Address shipToAddr, Address billToAddr, java.lang.String shipToFirstName, java.lang.String shipToLastName, java.lang.String billToFirstName, java.lang.String billToLastName, CreditCard chargeCard, java.lang.String carrier, double totalPrice)
          Create interface of Order component
 AccountModel getAccountDetails()
           
 OrderModel getOrderDetails(int orderId)
          Return the details of an order
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

getAccountDetails

public AccountModel getAccountDetails()
                               throws java.rmi.RemoteException
Returns:
the account information corresponding to a customer's account.

changeContactInformation

public void changeContactInformation(ContactInformation info)
                              throws java.rmi.RemoteException
updates the contact information for the specified account

createAccount

public boolean createAccount(java.lang.String userId,
                             java.lang.String status,
                             ContactInformation info)
                      throws java.rmi.RemoteException
Create interface of AccountHome component

getOrderDetails

public OrderModel getOrderDetails(int orderId)
                           throws java.rmi.RemoteException
Return the details of an order

createOrder

public int createOrder(java.util.Collection lineItems,
                       Address shipToAddr,
                       Address billToAddr,
                       java.lang.String shipToFirstName,
                       java.lang.String shipToLastName,
                       java.lang.String billToFirstName,
                       java.lang.String billToLastName,
                       CreditCard chargeCard,
                       java.lang.String carrier,
                       double totalPrice)
                throws java.rmi.RemoteException
Create interface of Order component


Copyright © 2000 Sun Microsystems Inc. All Rights Reserved.