Expresso 5-6

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

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.Search
All Implemented Interfaces:
Cloneable, Serializable

public class Search
extends GetBase

allows the user to search for a record. This class requires a match on all supplied fields of a DBObject. Search can be extended to allow a search on one or more fields e.g. a foreign key field

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
Search()
           
Search(String code, String descrip)
          Constructor
 
Method Summary
protected  void autoField(String oneFieldName)
          implemented by subclass
 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

Search

public Search()

Search

public Search(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
Description copied from class: GetBase
implemented by subclass

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

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.