O'Reilly logo

Building Parsers with Java™ by Steven John Metsker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required