org.shept.org.springframework.web.servlet.mvc.delegation.component
public class ListPersistenceComponent extends AbstractEditingComponent
dao, DATA_ACCESS_ERROR, DATA_INTEGRITY_ERROR, enableDaoTransactions, enableDelete, enableSave, OPTIMISTIC_LOCKING_ERROR, reloadOnCancel, transactionManagerANCHOR_PREFIX| Constructor and Description |
|---|
ListPersistenceComponent() |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.web.servlet.ModelAndView |
doCancel(javax.servlet.http.HttpServletRequest request,
ComponentToken token) |
protected void |
doCustomTransaction(String transaction,
PageableList<?> pagedList,
Integer idx)
Execute a custom transaction
First it will be checked if there is a transaction for the PageableList available
Then the dao is checked for a transaction with a List argument, which will contain only
the visible part of the page to be commited.
|
protected org.springframework.web.servlet.ModelAndView |
doDelete(javax.servlet.http.HttpServletRequest request,
ComponentToken token) |
protected void |
doDelete(javax.servlet.http.HttpServletRequest request,
PageableList<?> listHolder,
int idx) |
protected org.springframework.web.servlet.ModelAndView |
doSave(javax.servlet.http.HttpServletRequest request,
ComponentToken token) |
protected void |
doSaveList(javax.servlet.http.HttpServletRequest request,
PageableList<?> listHolder) |
private void |
executeTransaction(Method mth,
Object target,
Integer idx) |
protected ModelCreation |
getModelCreation(PageableList<?> listHolder) |
boolean |
supports(Object commandObject) |
doActionInternal, getCustomDeleteTransaction, getCustomSaveTransaction, getDefaultMappings, getValidators, onBindAndValidate, setValidatorsafterPropertiesSet, doDeleteModel, doFlushSession, doInTransactionIfAvailable, doSaveModel, doSaveModel, excecuteAction, getDao, getWrappedModel, isEnableDaoTransactions, isEnableDelete, isEnableSave, isReloadOnCancel, setDao, setEnableDaoTransactions, setEnableDelete, setEnableSave, setReloadOnCancel, setTransactionManagergetAnchorPrefix, getMappings, getResources, hasErrorsInPath, initApplicationContext, isCopyResources, modelRedirect, modelRedirect, modelRedirectClip, modelUnhandled, modelWithErrors, setAnchorPrefix, setCopyResources, setMappings, setResources, supportedActions, supportsActionapplyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeadergetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextgetApplicationContext, getMessageSourceAccessor, requiredContextClass, setApplicationContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMappings, supportedActions, supportsActionprotected org.springframework.web.servlet.ModelAndView doCancel(javax.servlet.http.HttpServletRequest request,
ComponentToken token)
throws Exception
doCancel in class AbstractEditingComponentExceptionprotected org.springframework.web.servlet.ModelAndView doSave(javax.servlet.http.HttpServletRequest request,
ComponentToken token)
throws Exception
doSave in class AbstractEditingComponentExceptionprotected org.springframework.web.servlet.ModelAndView doDelete(javax.servlet.http.HttpServletRequest request,
ComponentToken token)
throws Exception
doDelete in class AbstractEditingComponentExceptionprotected void doCustomTransaction(String transaction, PageableList<?> pagedList, Integer idx) throws Exception
transaction - The method name of the transactionpagedList - PageableList argumentidx - optional index of the row to be executed (if only one row shall be exceuted)Exceptionprivate void executeTransaction(Method mth, Object target, Integer idx) throws Exception
- mth - pageList - Exceptionprotected void doSaveList(javax.servlet.http.HttpServletRequest request,
PageableList<?> listHolder)
throws Exception
- request - listHolder - Exceptionprotected void doDelete(javax.servlet.http.HttpServletRequest request,
PageableList<?> listHolder,
int idx)
throws Exception
- request - listHolder - Exceptionprotected ModelCreation getModelCreation(PageableList<?> listHolder)
public boolean supports(Object commandObject)
Copyright © 2014. All Rights Reserved.