|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.xwork2.ActionSupport
org.apache.struts2.showcase.action.AbstractCRUDAction
public abstract class AbstractCRUDAction
AbstractCRUDAction.
| Field Summary |
|---|
| Fields inherited from class com.opensymphony.xwork2.ActionSupport |
|---|
LOG |
| Fields inherited from interface com.opensymphony.xwork2.Action |
|---|
ERROR, INPUT, LOGIN, NONE, SUCCESS |
| Constructor Summary | |
|---|---|
AbstractCRUDAction()
|
|
| Method Summary | |
|---|---|
String |
delete()
|
protected IdEntity |
fetch(Serializable tryId,
IdEntity tryObject)
Utility method for fetching already persistent object from storage for usage in params-prepare-params cycle. |
Collection |
getAvailableItems()
|
protected abstract Dao |
getDao()
|
String[] |
getToDelete()
|
String |
list()
|
void |
setToDelete(String[] toDelete)
|
| 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 |
| Constructor Detail |
|---|
public AbstractCRUDAction()
| Method Detail |
|---|
protected abstract Dao getDao()
public Collection getAvailableItems()
public String[] getToDelete()
public void setToDelete(String[] toDelete)
public String list()
throws Exception
Exception
public String delete()
throws Exception
Exception
protected IdEntity fetch(Serializable tryId,
IdEntity tryObject)
tryId - The id to try to get persistent object fortryObject - The object, induced by first params invocation, possibly containing id to try to get persistent
object for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||