Expresso 5-6

com.jcorporate.expresso.services.controller.dbmaint
Class Update

java.lang.Object
  extended bycom.jcorporate.expresso.core.controller.State
      extended bycom.jcorporate.expresso.services.controller.dbmaint.DynamicCmd
          extended bycom.jcorporate.expresso.services.controller.dbmaint.GetBase
              extended bycom.jcorporate.expresso.services.controller.dbmaint.Update
All Implemented Interfaces:
Cloneable, Serializable

public class Update
extends GetBase

Provides a standard form for user to update all fields (except primary key). Extend this class if only updating one or several but not all fields.

Author:
Michael Nash, contributions by Kevin King
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jcorporate.expresso.services.controller.dbmaint.DynamicCmd
countTotalRecords, masterObjKey, showNext, showPrev
 
Fields inherited from class com.jcorporate.expresso.core.controller.State
NOTEMPTY_MASK, secure
 
Constructor Summary
Update()
           
Update(String code, String descrip)
          Constructor
 
Method Summary
protected  void autoField(String oneFieldName)
          Create an input for one field specified by the field name.
 void run(ControllerRequest req, ControllerResponse res)
          Perform the actions of this state.
 
Methods inherited from class com.jcorporate.expresso.services.controller.dbmaint.GetBase
addLookupTransition, displayValue, showForm
 
Methods inherited from class com.jcorporate.expresso.services.controller.dbmaint.DynamicCmd
addParams, decode, getControllerName, getCurrentDBObj, getDataObject, getFieldsParam, getFixedFields, getKeyParameter, getMyDataObject, getPageNumber, getSearchParam, initializeDBObj, isKeyField, retrieveMyDBObject, setFields, setFieldsParam, setMyDataObject, setSearchParam, showBlobViewLink, showEditLink, showEditLink, showOptions, showUserName
 
Methods inherited from class com.jcorporate.expresso.core.controller.State
add, addAutoInput, addAutoInput, addAutoInput, addBlock, addError, addInput, addOptionalParameter, addOutput, addParameter, addParameter, addParameter, addRequiredParameter, addTransition, autoValidate, autoValidate, calculateHandlerName, checkMask, checkParamMasks, clearFormCache, clone, equals, getAttribute, getController, getControllerRequest, getControllerResponse, getDataContext, getDBController, getDBName, getDescription, getErrors, getErrorState, getErrorTransition, getFileName, getFormCache, getHandlerName, getInitParameter, getName, getObjectParameter, getOptionalParameters, getOptionalParametersList, getParameter, getParameters, getPatternMatcher, getRequiredParametersList, getResponse, getReturnToSender, getSession, getStateFormClass, getString, getString, getSuccessTransition, getUid, getUser, hashCode, isFileParameter, isParameter, isSecure, perform, saveErrors, setController, setDescription, setErrorState, setErrorTransition, setFormCache, setHandlerName, setMask, setMask, setMaskError, setName, setResponse, setReturnToSender, setSecure, setStateFormClass, setSuccessTransition, toString, transition
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Update

public Update()

Update

public Update(String code,
              String descrip)
Constructor

Parameters:
code - The name of the state.
descrip - The friendly name of the state
Method Detail

autoField

protected void autoField(String oneFieldName)
                  throws DBException,
                         ControllerException
Create an input for one field specified by the field name. This is sort of a callback function generated by the base class' autoForm function.

Specified by:
autoField in class GetBase
Parameters:
oneFieldName - The name of the field
Throws:
DBException - If a problem occurs getting field info from the database object
ControllerException - upon other errors
See Also:
GetBase

run

public void run(ControllerRequest req,
                ControllerResponse res)
         throws NonHandleableException,
                ControllerException
Perform the actions of this state.

Overrides:
run in class DynamicCmd
Parameters:
req - The ControllerRequest object
res - The ControllerResponse object
Throws:
NonHandleableException - upon fatal error
ControllerException

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.