java.lang.Object
com.jcorporate.expresso.core.controller.State
com.jcorporate.expresso.services.controller.dbmaint.DynamicCmd
com.jcorporate.expresso.services.controller.dbmaint.GetBase
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- Direct Known Subclasses:
- Add, Search, Update
- public abstract class GetBase
- extends DynamicCmd
Base class for search/add & update operations that
were previously carried out in DBMaint.doGet().
| 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, run, 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 |
GetBase
public GetBase()
GetBase
public GetBase(java.lang.String code,
java.lang.String descrip)
autoField
protected abstract void autoField(java.lang.String oneFieldName)
throws com.jcorporate.expresso.core.db.DBException,
com.jcorporate.expresso.core.controller.ControllerException
- implemented by subclass
autoForm
private void autoForm()
throws com.jcorporate.expresso.core.db.DBException,
com.jcorporate.expresso.core.controller.ControllerException
- Show an "auto" form - a default form that just lists all of the fields
on a DBObject for simple data entry
displayValue
protected java.lang.String displayValue(java.lang.String fieldType,
java.lang.String fieldValue)
throws com.jcorporate.expresso.core.db.DBException
- Format a value for display in the HTML being returned to the client
addLookupTransition
protected void addLookupTransition(com.jcorporate.expresso.core.dataobjects.DataObjectMetaData metadata,
com.jcorporate.expresso.core.controller.Input oneField,
java.lang.String oneFieldName)
throws com.jcorporate.expresso.core.db.DBException
- Adds the lookup transition if the target is a DataObject. And a lookup
object is specified. Otherwise, it skips the lookup item.
showForm
protected void showForm()
throws com.jcorporate.expresso.core.db.DBException,
com.jcorporate.expresso.core.controller.ControllerException
- Show the HTML form to the user - this form may be for add/update or
search and may or may not be populated with data when presented to the user.
The descendant of this class must defined this method to show the
necessary input form for the user to key in either record data or criteria f
or a search. An existing record (if any) will be populated in myDBObj