Java Reference
In-Depth Information
A good example of a use case that takes advantage of dynamically generated
paged queries is the View Orders use case from the Food to Go application. It
describes how a customer service representative searches for orders.
The customer service representative enters one or more of the following search
criteria: order number, phone number, email address, and date range. The sys-
tem displays the orders that match the search criteria.
Figure 11.1 shows the screen for this use case, which consists of a form for enter-
ing search criteria and a list of matching orders. The user can page through the
list of orders using the Next and Prev (Previous) buttons and can change the sort
order by clicking on a column header.
Although the user interface and the underlying business logic for this kind of
use case appear to be quite simple, querying a large database has some tricky per-
sistence-tier design issues that must be solved in order for the application to be
responsive, scalable, and maintainable:
Email:
Order #:
Phone #:
When:
Today
Find
Order #
Phone #
Email
When
Restaurant
Status
Next
Prev
Figure 11.1
The screen for searching for and viewing orders
 
Search WWH ::




Custom Search