| com.jcorporate.expresso.services.controller.dbmaint.DynamicCmd com.jcorporate.expresso.services.controller.dbmaint.GetBase com.jcorporate.expresso.services.controller.dbmaint.Add
Add | public class Add extends GetBase (Code) | | Displays a form for a new DBObject record.
This state does not actually perform the adding of the dbobject to
the database, instead it creates a blank form that is pre-populated with
the default values of the given DBObject.
The actual class that does the updating is AddUpdate
author: Michael Nash, contributions by Kevin King See Also: com.jcorporate.expresso.services.controller.dbmaint.AddUpdate |
Add | public Add(String stateName, String descrip)(Code) | | Default Constructor
Parameters: stateName - Name of the state Parameters: descrip - Friendly name of the state |
autoField | protected void autoField(String oneFieldName) throws DBException, ControllerException(Code) | | Automatically handle a single field on the form.
This function is called by the base class' autoList function, so
it provides, in essence, a callback for rendering each DBObject field
Parameters: oneFieldName - The name of the field throws: DBException - If a problem occurs getting field info from thedatabase object throws: ControllerException - upon error |
Methods inherited from com.jcorporate.expresso.services.controller.dbmaint.DynamicCmd | protected void addParams(Transition t) throws ControllerException(Code)(Java Doc) protected String decode(String orig)(Code)(Java Doc) protected String getControllerName() throws ControllerException(Code)(Java Doc) protected DBObject getCurrentDBObj() throws ControllerException(Code)(Java Doc) protected DataObject getDataObject() throws ControllerException(Code)(Java Doc) protected String getFieldsParam() throws ControllerException(Code)(Java Doc) protected Map getFixedFields() throws ControllerException(Code)(Java Doc) protected String getKeyParameter(DataObject srcDBObj) throws ControllerException(Code)(Java Doc) protected DataObject getMyDataObject()(Code)(Java Doc) public int getPageNumber() throws ControllerException(Code)(Java Doc) protected String getSearchParam() throws ControllerException(Code)(Java Doc) protected void initializeDBObj() throws ControllerException(Code)(Java Doc) protected boolean isKeyField(String fieldName) throws DBException, ControllerException(Code)(Java Doc) protected DataObject retrieveMyDBObject() throws DBException, ControllerException(Code)(Java Doc) public void run(ControllerRequest newParams, ControllerResponse newResponse) throws ControllerException, NonHandleableException(Code)(Java Doc) protected void setFields(DataObject myDBObj, String fieldPairs) throws DBException(Code)(Java Doc) protected void setFieldsParam(String newParam)(Code)(Java Doc) protected void setMyDataObject(DataObject myDBObj)(Code)(Java Doc) protected void setSearchParam(String newParam)(Code)(Java Doc) protected void showBlobViewLink(String fieldName, DataObject dbobj, Input myElement, String controller) throws DBException, ControllerException(Code)(Java Doc) protected synchronized void showEditLink(String fieldName, String oneFieldValue, DataObject currentRecord, Output myElement) throws DBException, ControllerException(Code)(Java Doc) protected synchronized void showEditLink(String fieldName, String oneFieldValue, DataObject currentRecord, Output myElement, String controller) throws DBException, ControllerException(Code)(Java Doc) protected void showOptions() throws DBException, ControllerException(Code)(Java Doc) protected void showUserName(String theDescrip) throws ControllerException(Code)(Java Doc)
|
|
|