Keel 2.1RC2

org.keel.apps.crud.models
Class Query

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.Query
All Implemented Interfaces:
Configurable, LogEnabled, Model, Securable, ThreadSafe

public class Query
extends CrudBase
implements ThreadSafe

Perform a query-by-example and display the results.

Version:
$Revision: 1.14 $ $Date: 2004/03/18 23:41:38 $
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
Query()
           
 
Method Summary
 ModelResponse execute(ModelRequest req)
          All of the sub-classes of this class extend the execute method to perform their functionality.
private  long listRecords(ModelRequest req, ModelResponse res, java.lang.String sortKey, Output myTable)
           
 
Methods inherited from class org.keel.apps.crud.models.CrudBase
addCriteria, addParameters, countRecords, decode, 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

Query

public Query()
Method Detail

listRecords

private long listRecords(ModelRequest req,
                         ModelResponse res,
                         java.lang.String sortKey,
                         Output myTable)
                  throws PersistenceException,
                         ModelException
Returns:
The count of records listed
Throws:
PersistenceException
ModelException

execute

public ModelResponse execute(ModelRequest req)
                      throws ModelException
Description copied from class: CrudBase
All of the sub-classes of this class extend the execute method to perform their functionality.

Specified by:
execute in interface Model
Overrides:
execute in class CrudBase
Throws:
ModelException

Keel 2.1RC2

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