org.apache.struts2.showcase.action
Class SkillAction

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by org.apache.struts2.showcase.action.AbstractCRUDAction
          extended by org.apache.struts2.showcase.action.SkillAction
All Implemented Interfaces:
com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.Preparable, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, Serializable

public class SkillAction
extends AbstractCRUDAction
implements com.opensymphony.xwork2.Preparable

SkillAction.

See Also:
Serialized Form

Field Summary
protected  SkillDao skillDao
           
 
Fields inherited from class com.opensymphony.xwork2.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
SkillAction()
           
 
Method Summary
 Skill getCurrentSkill()
           
protected  Dao getDao()
           
 String getSkillName()
           
 void prepare()
          This method is called to allow the action to prepare itself.
 String save()
           
 void setCurrentSkill(Skill currentSkill)
           
 void setSkillDao(SkillDao skillDao)
           
 void setSkillName(String skillName)
           
 
Methods inherited from class org.apache.struts2.showcase.action.AbstractCRUDAction
delete, fetch, getAvailableItems, getToDelete, list, setToDelete
 
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

skillDao

protected SkillDao skillDao
Constructor Detail

SkillAction

public SkillAction()
Method Detail

getSkillName

public String getSkillName()

setSkillName

public void setSkillName(String skillName)

getDao

protected Dao getDao()
Specified by:
getDao in class AbstractCRUDAction

setSkillDao

public void setSkillDao(SkillDao skillDao)

getCurrentSkill

public Skill getCurrentSkill()

setCurrentSkill

public void setCurrentSkill(Skill currentSkill)

prepare

public void prepare()
             throws Exception
This method is called to allow the action to prepare itself.

Specified by:
prepare in interface com.opensymphony.xwork2.Preparable
Throws:
Exception - thrown if a system level exception occurs.

save

public String save()
            throws Exception
Throws:
Exception


Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.