15.2. A Sample Database
Query language examples must query something, and so this chapter needs a sample data set. For its data, this chapter uses an object model from a gourmet potato chip company that is just starting out and has only a few customers. As Figure 15.1 shows, the package sjm.examples.chips contains the chip data as an object model.
Figure 15.1. The sjm.examples.chips package. This package contains an object model of customers and their chip orders.
The ChipBase class contains a complete object model of customers and their orders for chips. Figure 15.2 shows the ChipBase static methods that return these three classes of object.
Get Building Parsers with Java™ now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.