FileDocCategorySizeDatePackage
ItemAction.javaAPI DocJBoss 4.2.11487Fri Jul 13 20:55:42 BST 2007xpetstore.web.webwork.action.item

ItemAction

public class ItemAction extends xpetstore.web.webwork.action.BaseAction
author
Herve Tchepannou
webwork.action
name="item" success="item.vm"

Fields Summary
private String
_itemId
private xpetstore.domain.Item
_item
Constructors Summary
Methods Summary
protected java.lang.StringdoExecute()

see
webwork.action.ActionSupport#doExecute()

        Session s = getHibernateSession(  );

        try
        {
            _item = ( Item ) s.load( Item.class, _itemId );

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

return
Item

        return _item;
    
public java.lang.StringgetItemId()

return
String

        return _itemId;
    
public voidsetItem(xpetstore.domain.Item item)
Sets the item.

param
item The item to set

        _item = item;
    
public voidsetItemId(java.lang.String itemId)
Sets the itemId.

param
itemId The itemId to set

        _itemId = itemId;