| com.jcorporate.expresso.services.controller.dbmaint.DynamicCmd com.jcorporate.expresso.services.controller.dbmaint.UpdateBase
All known Subclasses: com.jcorporate.expresso.services.controller.dbmaint.UpdateDelete, com.jcorporate.expresso.services.controller.dbmaint.UpdateUpdate, com.jcorporate.expresso.services.controller.dbmaint.AddUpdate,
UpdateBase | abstract public class UpdateBase extends DynamicCmd (Code) | | Base Class for posting add, delete and updating operations. This
functionality was previously carried out in the DBMaint.doPost().
Now extended by ADDsave, UPDATEsave and UPDATEdelete
method.
author: Michael Nash, contributions by Kevin King version: $Revision: 1.16 $ $Date: 2004/11/17 20:48:18 $ |
UpdateBase | public UpdateBase()(Code) | | |
UpdateBase | public UpdateBase(String code, String descrip)(Code) | | Constructor
Parameters: code - The name of the state. Parameters: descrip - The friendly name of the state |
saveBlob | protected void saveBlob(String fieldName, java.io.File value, JDBCDataObject criteria) throws DBException(Code) | | Saves a BLOB field to the database
Parameters: fieldName - the field Name to save Parameters: value - A java.io.File object representing the file to send to thedatabase. Parameters: criteria - The current DBObject we are operating on. |
saveBlobFields | protected void saveBlobFields(DataObject myDBObj) throws DBException(Code) | | Saves updated BLOB fields to the database table if there are any. The
way to tell if the field needs updating is that the BLOB field attribute
fileName equals something, which points to a new file that has been uploaded
[As parsed and set by DefaultAutoElement]
Parameters: myDBObj - The current DBObject to update/add For adding records, theDBObject should already be added by the time this method is called. See Also: com.jcorporate.expresso.services.controller.ui.DefaultAutoElement.parseSingleInput |
showKey | protected void showKey(boolean withEditLink) throws DBException, ControllerException(Code) | | Display a table showing the key fields of this object and their
values. Used to confirm add/delete/update operations to the user
Parameters: withEditLink - true if you want the edit link displayed for the key throws: DBException - If it is not possible to determine the keysor their values |
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)
|
|
|