Keel 2.1RC2

org.keel.apps.crud.models
Class GetBase

java.lang.Object
  extended byorg.keel.services.model.StandardModel
      extended byorg.keel.services.model.StandardLogEnabledModel
          extended byorg.keel.services.model.SecurableStandardLogEnabledModel
              extended byorg.keel.apps.crud.models.CrudBase
                  extended byorg.keel.apps.crud.models.GetBase
All Implemented Interfaces:
Configurable, LogEnabled, Model, Securable
Direct Known Subclasses:
PromptAdd, PromptQuery, PromptUpdate

public abstract class GetBase
extends CrudBase

Base class for search/add & update operations.

Version:
$Revision: 1.4 $ $Date: 2003/07/03 16:18:17 $
Author:
Michael Nash

Field Summary
 
Fields inherited from class org.keel.apps.crud.models.CrudBase
ADD, CRUD, DELETE, LIST, noPaging, prefix, PROMPT, PROMPT_ADD, PROMPT_QUERY, PROMPT_UPDATE, QUERY, SELECT_PERSISTENT, suffix, UPDATE
 
Fields inherited from class org.keel.services.model.SecurableStandardLogEnabledModel
 
Fields inherited from class org.keel.services.model.StandardLogEnabledModel
log
 
Fields inherited from class org.keel.services.model.StandardModel
configuration
 
Fields inherited from interface org.keel.services.model.Model
ROLE
 
Constructor Summary
GetBase()
           
 
Method Summary
protected abstract  void autoField(ModelRequest req, ModelResponse res, java.lang.String oneFieldName)
          implemented by subclass
private  void autoForm(ModelRequest req, ModelResponse res)
          Show an "auto" form - a default form that just lists all of the fields on a Persistent for simple data entry
protected  void showForm(ModelRequest req, ModelResponse res)
          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 org.keel.apps.crud.models.CrudBase
addCriteria, addParameters, countRecords, decode, execute, getCurrentPage, getEndRecord, getFixedFields, getMasterDetail, getPageNumber, getPersistent, getPersistentName, getPrefixes, getSortFieldsParam, getStartRecord, isShowNext, isShowPrev, saveSettings, setCurrentPage, setEndRecord, setShowNext, setShowPrev, setStartRecord, showEditLink, showOptions, showUserName
 
Methods inherited from class org.keel.services.model.SecurableStandardLogEnabledModel
getAuthorizationManager, setAuthorizationManager
 
Methods inherited from class org.keel.services.model.StandardLogEnabledModel
enableLogging
 
Methods inherited from class org.keel.services.model.StandardModel
configure, getConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetBase

public GetBase()
Method Detail

autoField

protected abstract void autoField(ModelRequest req,
                                  ModelResponse res,
                                  java.lang.String oneFieldName)
                           throws PersistenceException,
                                  ModelException
implemented by subclass

Parameters:
oneFieldName -
Throws:
DBException
ControllerException
PersistenceException
ModelException

autoForm

private void autoForm(ModelRequest req,
                      ModelResponse res)
               throws PersistenceException,
                      ModelException
Show an "auto" form - a default form that just lists all of the fields on a Persistent for simple data entry

Throws:
PersistenceException - If an error occurs retrieving the form information from the persistent
ModelException

showForm

protected void showForm(ModelRequest req,
                        ModelResponse res)
                 throws PersistenceException,
                        ModelException
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

Throws:
PersistenceException - If a problem occurs with the database connection
ModelException

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.