FileDocCategorySizeDatePackage
CheckoutAction.javaAPI DocJBoss 4.2.11254Fri Jul 13 20:55:42 BST 2007xpetstore.web.webwork.action.cart

CheckoutAction

public class CheckoutAction extends BaseCartAction
author
Herve Tchepannou
webwork.action
name="checkout" success="checkout.vm"

Fields Summary
private xpetstore.domain.Customer
_customer
Constructors Summary
Methods Summary
protected java.lang.StringdoExecute()

see
webwork.action.ActionSupport#doExecute()


    //~ Methods ----------------------------------------------------------------

           
        
         
    
        Session s = getHibernateSession(  );

        try
        {
            _customer = ( Customer ) s.load( Customer.class, getUserId(  ) );

            return SUCCESS;
        }
        finally
        {
            s.close(  );
        }
    
public xpetstore.domain.CustomergetCustomer()

return
Customer

        return _customer;
    
public voidsetCustomer(xpetstore.domain.Customer customer)
Sets the customer.

param
customer The customer to set

        _customer = customer;