|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.core.controller.State
com.jcorporate.expresso.services.controller.dbmaint.DynamicCmd
com.jcorporate.expresso.services.controller.dbmaint.ListBase
Base class for the DBMaint commands that display lists of records, such as Search and List.
| 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 | |
ListBase()
|
|
ListBase(String code,
String descrip)
Constructor |
|
| Method Summary | |
protected void |
addRecordsToBlock(ArrayList i_AllRecords,
Block myTable)
Given an interator containing database objects add all of those objects to the given output block as rows. |
protected Block |
generatePageTransitions(ControllerRequest request,
RecordPaginator rp,
int pageLimit)
Generates an arrayList of transitions to allow direct jumping to a page. |
protected RecordPaginator |
getRecordPaginator()
Gets the currently used paginator |
protected String |
getSortKey()
This method determines how the list is sorted. |
protected long |
listRecords(String sortKey,
Block myTable)
Lists the records for display |
protected void |
setupListSearchCriteria()
This method sets the search conditions on the current DBObject. |
protected void |
showList()
Base class Show a list of database records to the user, allowing the key to be clicked on to request an edit of the object |
| 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 java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ListBase()
public ListBase(String code,
String descrip)
code - The name of the state.descrip - The friendly name of the state| Method Detail |
protected RecordPaginator getRecordPaginator()
throws ControllerException
ControllerException
protected long listRecords(String sortKey,
Block myTable)
throws DBException,
ControllerException
sortKey - The key to sort againstmyTable - The Block to insert the table into.
DBException - Upon error communicating with the DBObject
ControllerException - upon other errors
protected String getSortKey()
throws DBException,
ControllerException
DBException - upon error communicating with the DBObject
ControllerException - upon other errors
protected void setupListSearchCriteria()
throws DBException,
ControllerException
DBException - upon error communicating with the DBObject
ControllerException - upon other errors
protected Block generatePageTransitions(ControllerRequest request,
RecordPaginator rp,
int pageLimit)
throws ControllerException
request - The controllerRequest object so we can set the appropriate
parameters from the previous page.rp - a queried and instantiated RecordPaginator objectpageLimit - the maximum number of records per screen.
Transition objects.
IllegalArgumentException - if isCountRecords() == false or
if no search has been run yet.
ControllerException - upon all other errors
protected void addRecordsToBlock(ArrayList i_AllRecords,
Block myTable)
throws DBException,
ControllerException
i_AllRecords - an arrayList of DBObjects to add to the specified blockmyTable - the Block obejct to add the records to.
DBException - upon error communicating with the DBObjects
ControllerException - upon other error.
protected void showList()
throws DBException,
ControllerException
DBException - If a problem occurs retrieving the list
ControllerException
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||