|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanetj.magic.AbstractMagicRequest
planetj.magic.MagicRequest
planetj.magic.AbstractRowRequest
planetj.magic.UpdateRowRequest
This class gets a Row out of the request extracts values into it and updates the Row.
Nested Class Summary |
Nested classes inherited from class planetj.dataengine.IFeature |
IFeature.OperationCountFeature |
Field Summary |
Fields inherited from interface planetj.magic.IMagicRequest |
IS_COMPLETE, MAGIC_REQUEST, MAGIC_REQUEST_CLASS, MAGIC_REQUEST_PARAM1, MAGIC_REQUEST_RC, SAME_URI, TYPE, TYPE_PAGE, TYPE_SESSION, TYPE_STATIC, USER_REQUEST_ATTRIBUTES_STORED |
Fields inherited from interface planetj.dataengine.IFeature |
DEFAULT_MESSAGE_FEATURE, FEATURE_DELETE, FEATURE_INSERT, FEATURE_LEVEL_ENTERPRISE, FEATURE_LEVEL_ENTRY, FEATURE_LEVEL_PROFESSIONAL, FEATURE_LEVEL_STANDARD, FEATURE_UPDATE, MESSAGE_END, MESSAGE_START |
Constructor Summary | |
UpdateRowRequest(Row row,
HttpServletRequest request,
HttpServletResponse response)
Constructor comment. |
|
UpdateRowRequest(java.lang.String id,
HttpServletRequest request,
HttpServletResponse response,
java.lang.String rowId)
Deprecated. by WK on (11/25/2003 1:43:37 PM) should hold reference to row and not the row key also no need for the id |
Method Summary | |
Row |
extractDataIntoRow(HttpServletRequest request)
Gets the Row out of the request and extracts data from the request into it. |
java.lang.String |
getDataEngineMode()
By default, UpdateRowRequests should be in edit mode. |
java.lang.String |
getDefaultUserMessage()
Return the default user message for update operations. |
boolean |
isRepeatable()
By default RowRequests are not repeatable. |
void |
postUpdate(Row row,
int numUpdated,
HttpServletRequest request,
HttpServletResponse response)
Method called after update is attempted. |
Row |
prepareUpdateRow(Row row,
HttpServletRequest pReq,
HttpServletResponse pRes,
DataEngineServlet servlet)
Deprecated. by WK on (8/9/2003 8:16:22 PM) because the HttpServletResponse and DataEngineServlet should never be needed. Made final to ensure that no subclasses override this method thinking their logic will get run. prepareRow is the method called before processing a Row. This method will no longer be available in WOW 7.0. |
Row |
processRow(Row row,
ExecutingContext ec,
HttpServletRequest request,
HttpServletResponse response)
Updated the given Row into the database. |
Methods inherited from class planetj.magic.AbstractRowRequest |
execute, getDataEngineRowMode, getDefaultEndNavigationGroup, getExecutingContext, getFeatureLevel, getRow, getRowId, postRowProcess, prepareRow, setUserMessage |
Methods inherited from class planetj.magic.MagicRequest |
getCurrentMagicRequest, getPrimaryMagicRequest, getType, store |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface planetj.dataengine.IFeature |
appendUnsupportedHTMLMessage, isApplicable |
Constructor Detail |
public UpdateRowRequest(java.lang.String id, HttpServletRequest request, HttpServletResponse response, java.lang.String rowId)
public UpdateRowRequest(Row row, HttpServletRequest request, HttpServletResponse response)
Method Detail |
public Row extractDataIntoRow(HttpServletRequest request) throws CMException
AbstractRowRequest
extractDataIntoRow
in class AbstractRowRequest
request
- request from the client
CMException
public java.lang.String getDataEngineMode()
getDataEngineMode
in class AbstractRowRequest
public java.lang.String getDefaultUserMessage()
getDefaultUserMessage
in class AbstractRowRequest
public void postUpdate(Row row, int numUpdated, HttpServletRequest request, HttpServletResponse response) throws CMException
row
- Row inserted into the databasenumUpdated
- number of Rows updated into the databaserequest
- request from client
CMException
public final Row prepareUpdateRow(Row row, HttpServletRequest pReq, HttpServletResponse pRes, DataEngineServlet servlet) throws CMException
CMException
public Row processRow(Row row, ExecutingContext ec, HttpServletRequest request, HttpServletResponse response) throws CMException
processRow
in class AbstractRowRequest
row
- Row to be processed in some mannerec
- current context in which Row should be process during executionrequest
- request from clientresponse
- response to client
CMException
public boolean isRepeatable()
AbstractRowRequest
isRepeatable
in interface IMagicRequest
isRepeatable
in class AbstractRowRequest
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |