|
||||||||||
| 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 | |
|---|---|
java.lang.String |
delete()
|
protected IdEntity |
fetch(java.io.Serializable tryId,
IdEntity tryObject)
Utility method for fetching already persistent object from storage for usage in params-prepare-params cycle. |
java.util.Collection |
getAvailableItems()
|
protected abstract Dao |
getDao()
|
java.lang.String[] |
getToDelete()
|
java.lang.String |
list()
|
void |
setToDelete(java.lang.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, input, pause, setActionErrors, setActionMessages, 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 java.util.Collection getAvailableItems()
public java.lang.String[] getToDelete()
public void setToDelete(java.lang.String[] toDelete)
public java.lang.String list()
throws java.lang.Exception
java.lang.Exception
public java.lang.String delete()
throws java.lang.Exception
java.lang.Exception
protected IdEntity fetch(java.io.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 | |||||||||