lumis.doui.table
Class TableAddMultiRowDataProcessActionHandler

Package class diagram package TableAddMultiRowDataProcessActionHandler
java.lang.Object
  extended by lumis.doui.processaction.ProcessActionHandler<TableSource>
      extended by lumis.doui.table.BaseTableDataProcessActionHandler
          extended by lumis.doui.table.TableAddDataProcessActionHandler
              extended by lumis.doui.table.TableAddMultiRowDataProcessActionHandler
All Implemented Interfaces:
IProcessActionHandler, IParameters

public class TableAddMultiRowDataProcessActionHandler
extends TableAddDataProcessActionHandler

Process Action Handler to add multiple rows.

This process action handler should have the following nodes in its definition:

Example use of this process action <processAction id="commit" type="tableAddMultiRowData" sourceId="song"> <fieldValues> <fieldValue id="cdId" type="responseRenderParameter">PAGE_PARAMETER_ITEMID</fieldValue> </fieldValues> <response type="doui_standardCommit"/> </processAction>

Since:
4.0.6

Field Summary
protected  int curRowNumber
           
protected  String rowNumberFieldId
           
 
Fields inherited from class lumis.doui.processaction.ProcessActionHandler
douiContext, id, localizationManager, parameters, processActionContainer, processActionNode, RESPONSE_TYPE_CLOSE_WINDOW, RESPONSE_TYPE_HYPERLINK, RESPONSE_TYPE_MESSAGE, RESPONSE_TYPE_POPUP_INTERFACE, RESPONSE_TYPE_PREVIEW, RESPONSE_TYPE_REFRESH_PARENT, RESPONSE_TYPE_REQUEST_PROCESS_ACTION_CONFIRMATION_MESSAGE, RESPONSE_TYPE_REQUEST_PROCESS_ACTION_CONFIRMATION_PROCESS_ACTION_ID, RESPONSE_TYPE_RUN_JAVASCRIPT, RESPONSE_TYPE_SET_REQUEST_ATTRIBUTES, RESPONSE_TYPE_SET_REQUEST_PARAMETERS, RESPONSE_TYPE_SET_RESPONSE_PARAMETERS, RESPONSE_TYPE_STANDARD_COMMIT, RESPONSE_TYPE_STANDARD_EMBEDDED, RESPONSE_TYPE_STANDARD_POPUP, RESPONSE_TYPE_VALIDATE_PROCESS_ACTION_ON_RENDER, sessionConfig, source, sourceContainer, transaction
 
Constructor Summary
TableAddMultiRowDataProcessActionHandler()
           
 
Method Summary
 Object getParameter(String name)
          This method overrides the parent method returning the appropriate value for the curren row being inserted.
protected  void processActionWithoutResponse()
          Performs the process action.
 void setParameter(String name, Object value)
          This method overrides the parent method including the current row number id in the parameter name.
protected  void setPrimaryKeyAttribute(String primaryKey)
          There exists multiple primary keys.
protected  void setPrimaryKeyRenderParameter(String primaryKey)
          Deprecated. 
 
Methods inherited from class lumis.doui.table.TableAddDataProcessActionHandler
doInsert, execute, indexData, postInsert, preInsert, processAction, sendPostNotifications, sendPreNotifications, setPrimaryKeyParameter
 
Methods inherited from class lumis.doui.table.BaseTableDataProcessActionHandler
addToIndex, createQueryBuilder, createRenderDataChangedEvent, getIndexConfig, isSearchEnabled, readSelectedData, removeFromIndex, sendRenderDataChangedNotification, shouldSendRenderDataChangedNotification
 
Methods inherited from class lumis.doui.processaction.ProcessActionHandler
addDefaultResponse, addResponseParameter, checkServiceInstancePermission, checkServiceInstancePermission, getId, getParameter, getResource, getServiceInterfaceHyperLink, getUrl, init, localize, processHyperLinkResponse, processPopupInterfaceResponse, resolveFieldValueNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

curRowNumber

protected int curRowNumber

rowNumberFieldId

protected String rowNumberFieldId
Constructor Detail

TableAddMultiRowDataProcessActionHandler

public TableAddMultiRowDataProcessActionHandler()
Method Detail

processActionWithoutResponse

protected void processActionWithoutResponse()
                                     throws PortalException
Performs the process action. This method simply calls the doInsert method of TableAddDataProcessActionHandler.doInsert() for each row.

Overrides:
processActionWithoutResponse in class TableAddDataProcessActionHandler
Throws:
PortalException

getParameter

public Object getParameter(String name)
This method overrides the parent method returning the appropriate value for the curren row being inserted.

Specified by:
getParameter in interface IProcessActionHandler
Specified by:
getParameter in interface IParameters
Overrides:
getParameter in class ProcessActionHandler<TableSource>

setParameter

public void setParameter(String name,
                         Object value)
This method overrides the parent method including the current row number id in the parameter name.

Specified by:
setParameter in interface IProcessActionHandler
Specified by:
setParameter in interface IParameters
Overrides:
setParameter in class ProcessActionHandler<TableSource>

setPrimaryKeyRenderParameter

@Deprecated
protected void setPrimaryKeyRenderParameter(String primaryKey)
                                     throws PortalException
Deprecated. 

There exists multiple primary keys. Therefore do not set any primary key here.

Overrides:
setPrimaryKeyRenderParameter in class TableAddDataProcessActionHandler
Throws:
PortalException

setPrimaryKeyAttribute

protected void setPrimaryKeyAttribute(String primaryKey)
                               throws PortalException
There exists multiple primary keys. Therefore do not set any primary key here.

Overrides:
setPrimaryKeyAttribute in class TableAddDataProcessActionHandler
Parameters:
primaryKey - the primary key value. If null this method does nothing.
Throws:
PortalException


Lumisportal  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.