3.7. Separating Persistence from Games and Teams

For the Team and Game classes, we performed very simple modifications by separating the interface from the implementation. For the Games and Teams classes, we'll perform these same modifications, but also additional changes needed to separate the storage of the application data from the application logic.

Our application doesn't really support persistence as such. As originally envisioned, the application was expected to evolve to show various persistence mechanisms including storing data to flat files, using JDBC, and using the forthcoming Java Data Objects (JDO) interfaces. However, I decided that these permutations would distract from the book's primary subject, rather than contribute to it. ...

Get J2EE™ and JAX™: Developing Web Applications and Web Services 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.