Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.jcorporate.expresso.services.controller.dbmaint
Class GetBase  view GetBase download GetBase.java

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
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().


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
GetBase()
           
GetBase(java.lang.String code, java.lang.String descrip)
           
 
Method Summary
protected  void addLookupTransition(com.jcorporate.expresso.core.dataobjects.DataObjectMetaData metadata, com.jcorporate.expresso.core.controller.Input oneField, java.lang.String oneFieldName)
          Adds the lookup transition if the target is a DataObject.
protected abstract  void autoField(java.lang.String oneFieldName)
          implemented by subclass
private  void autoForm()
          Show an "auto" form - a default form that just lists all of the fields on a DBObject for simple data entry
protected  java.lang.String displayValue(java.lang.String fieldType, java.lang.String fieldValue)
          Format a value for display in the HTML being returned to the client
protected  void showForm()
          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.
 
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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GetBase

public GetBase()

GetBase

public GetBase(java.lang.String code,
               java.lang.String descrip)
Method Detail

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