FileDocCategorySizeDatePackage
MyAccountAction.javaAPI DocJBoss 4.2.11413Fri Jul 13 20:55:40 BST 2007xpetstore.web.webwork.action.customer

MyAccountAction

public class MyAccountAction extends xpetstore.web.webwork.action.BaseAction
author
Herve Tchepannou
webwork.action
name="myaccount" success="myaccount.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;