Synopses & Reviews
When creating complex Java enterprise applications, do you spend a lot of time thumbing through a myriad of books and other resources searching for what you hope will be the API that's right for the project at hand?
Java Database Best Practices rescues you from having to wade through books on each of the various APIs before figuring out which method to use! This comprehensive guide introduces each of the dominant APIs (Enterprise JavaBeans, Java Data Objects, the Java Database Connectivity API (JDBC) as well as other, lesser-known options), explores the methodology and design components that use those APIs, and then offers practices most appropriate for different types and makes of databases, as well as different types of applications.
Java Database Practices also examines database design, from table and database architecture to normalization, and offers a number of best practices for handling these tasks as well. Learn how to move through the various forms of normalization, understand when to denormalize, and even get detailed instructions on optimizing your SQL queries to make the best use of your database structure. Through it all, this book focuses on practical application of these techniques, giving you information that can immediately be applied to your own enterprise projects.
Enterprise applications in today's world are about data-- whether it be information about a product to buy, a user's credit card information, or the color that a customer prefers for their auto purchases. And just as data has grown in importance, the task of accessing that data has grown in complexity. Until now, you have been left on your own to determine which model best suits your application, and how best to use your chosen API. Java Database Practices is the one stop reference book to help you determine what's appropriate for your specific project at hand. Whether it's choosing between an alphabet soup of APIs and technologies--EJB, JDO, JDBC, SQL, RDBMS, OODMBS, and more on the horizon, this book is an indispensable resource you can't do without.
"Java Database Best Practices" takes developers through a wide variety of different ways to store and access data, enabling them to learn which 'persistence model' is most appropriate for each type of application.
About the Author
George Reese is the founder of two Minneapolis-based companies, enStratus Networks LLC (maker of high-end cloud infrastructure management tools) and Valtira LLC (maker of the Valtira Online Marketing Platform). Over the past 15 years, George has authored a number of technology books, including MySQL Pocket Reference, Database Programming with JDBC and Java, Java Database Best Practices, and the upcoming Web Architecture and Programming in the Cloud.
Throughout the Internet era, George has spent his career building enterprise tools for developers and delivering solutions to the marketing domain. He was an influential force in the evolution of online gaming through the creation of a number of Open Source MUD libraries and he created the first JDBC driver in 1996-the Open Source mSQL-JDBC. Most recently, George has been involved in the development of systems to support the deployment of transactional web applications in the cloud.
George holds a BA in Philosophy from Bates College in Lewiston, Maine and an MBA from the Kellogg School of Management in Evanston, Illinois. He currently lives in Minnesota with his wife Monique and his daughters Kyra and Lindsey.
Table of Contents
Dedication; Preface; Audience; Organization of This Book; Conventions Used in This Book; Comments and Questions; About the Philosophers; Acknowledgments; Data Architecture; Chapter 1: Elements of Database Applications; 1.1 Database Application Architectures; 1.2 Component Models; 1.3 Persistence Models; Chapter 2: Relational Data Architecture; 2.1 Relational Concepts; 2.2 Modeling; 2.3 Normalization; 2.4 Denormalization; 2.5 Object-Relational Mapping; Chapter 3: Transaction Management; 3.1 Transactions; 3.2 Concurrency; 3.3 JDBC Transaction Management; 3.4 Transaction Management Paradigms; Persistence Models; Chapter 4: Persistence Fundamentals; 4.1 Patterns of Persistence; 4.2 A Guest Book Application; Chapter 5: EJB CMP; 5.1 Which CMP Model to Use?; 5.2 The EJB 1.0 CMP Model; 5.3 The EJB 2.0 CMP Model; 5.4 Beyond CMP; Chapter 6: EJB BMP; 6.1 EJBs Revisited; 6.2 BMP Patterns; 6.3 State Management; 6.4 Exception Handling; Chapter 7: JDO Persistence; 7.1 JDO or EJB?; 7.2 Basic JDO Persistence; 7.3 EJB BMP with JDO; Chapter 8: Alternative Persistence Frameworks; 8.1 Why Alternative Frameworks?; 8.2 Persistence Approach; 8.3 Persistence Operations; 8.4 Searches; 8.5 Beyond the Basics; Tutorials; Chapter 9: J2EE Basics; 9.1 The Platform; 9.2 Java Naming and Directory Interface; 9.3 JavaServer Pages; 9.4 Remote Method Invocation; 9.5 Enterprise JavaBeans; Chapter 10: SQL; 10.1 Background; 10.2 Database Creation; 10.3 Table Management; 10.4 Data Management; Chapter 11: JDBC; 11.1 Architecture; 11.2 Simple Database Access; 11.3 Advanced JDBC; Chapter 12: JDO; 12.1 Architecture; 12.2 Enhancement; 12.3 Queries; 12.4 Changes; 12.5 Transactions; 12.6 Inheritance; Colophon;