Details

Practical Database Programming with Java


Practical Database Programming with Java


1. Aufl.

von: Ying Bai

96,99 €

Verlag: Wiley
Format: EPUB
Veröffentl.: 09.09.2011
ISBN/EAN: 9781118104699
Sprache: englisch
Anzahl Seiten: 928

DRM-geschütztes eBook, Sie benötigen z.B. Adobe Digital Editions und eine Adobe ID zum Lesen.

Beschreibungen

<b>Covers fundamental and advanced Java database programming techniques for beginning and experienced readers</b> <p>This book covers the practical considerations and applications in database programming using Java NetBeans IDE, JavaServer Pages, JavaServer Faces, and Java Beans, and comes complete with authentic examples and detailed explanations.</p> <p>Two data-action methods are developed and presented in this important resource. With Java Persistence API and plug-in Tools, readers are directed step by step through the entire database programming development process and will be able to design and build professional data-action projects with a few lines of code in mere minutes. The second method, runtime object, allows readers to design and build more sophisticated and practical Java database applications.</p> <p>Advanced and updated Java database programming techniques such as Java Enterprise Edition development kits, Enterprise Java Beans, JavaServer Pages, JavaServer Faces, Java RowSet Object, and Java Updatable ResultSet are also discussed and implemented with numerous example projects.</p> <p>Ideal for classroom and professional training use, this text also features:</p> <ul> <li>A detailed introduction to NetBeans Integrated Development Environment</li> <li>Java web-based database programming techniques (web applications and web services)</li> <li>More than thirty detailed, real-life sample projects analyzed via line-by-line illustrations</li> <li>Problems and solutions for each chapter</li> <li>A wealth of supplemental material available for download from the book's ftp site, including PowerPoint slides, solution manual, JSP pages, sample image files, and sample databases</li> <li>Coverage of two popular database systems: SQL Server 2008 and Oracle</li> </ul> <p>This book provides undergraduate and graduate students as well as database programmers and software engineers with the necessary tools to handle the database programming issues in the Java NetBeans environment.</p> <p>To obtain instructor materials please send an email to: pressbooks@ieee.org</p>
<b>Preface xxiii</b> <p><b>Acknowledgments xxv</b></p> <p><b>Chapter 1 Introduction 1</b></p> <p>What This Book Covers 2</p> <p>How This Book Is Organized and How to Use This Book 3</p> <p>How to Use the Source Code and Sample Databases 5</p> <p>Instructor and Customer Support 6</p> <p>Homework Solutions 7</p> <p><b>Chapter 2 Introduction to Databases 9</b></p> <p>2.1 What Are Databases and Database Programs? 10</p> <p>2.2 Develop a Database 12</p> <p>2.3 Sample Database 13</p> <p>2.4 Identifying Keys 17</p> <p>2.5 Define Relationships 18</p> <p>2.6 ER Notation 21</p> <p>2.7 Data Normalization 21</p> <p>2.8 Database Components in Some Popular Databases 26</p> <p>2.9 Create Microsoft Access Sample Database 34</p> <p>2.10 Create Microsoft SQL Server 2008</p> <p>2.11 Create Oracle 10g XE Sample Database 61</p> <p>2.12 Chapter Summary 85</p> <p><b>Chapter 3 JDBC API and JDBC Drivers 89</b></p> <p>3.1 What Are JDBC and JDBC API? 89</p> <p>3.2 JDBC Components and Architecture 90</p> <p>3.3 How Does JDBC Work? 92</p> <p>3.4 JDBC Driver and Driver Types 95</p> <p>3.5 JDBC Standard Extension API 99</p> <p>3.6 Chapter Summary 108</p> <p><b>Chapter 4 JDBC Application Design Considerations 113</b></p> <p>4.1 JDBC Application Models 113</p> <p>4.2 JDBC Applications Fundamentals 115</p> <p>4.3 Chapter Summary 151</p> <p><b>Chapter 5 Introduction to NetBeans IDE 155</b></p> <p>5.1 Overview of the NetBeans IDE 6.8 156</p> <p>5.2 Installing and Confi guring the NetBeans IDE 6.8 161</p> <p>5.3 Exploring NetBeans IDE 6.8 164</p> <p>5.4 Chapter Summary 312</p> <p><b> PART I Building Two-Tier Client–Server Applications 317</b></p> <p><b>Chapter 6 Query Data from Databases 319</b></p> <p><b>Section I Query Data Using Java Persistence API Wizards 319</b></p> <p>6.1 Java Persistence APIs 319</p> <p>6.2 Query Data Using Java Persistence API Wizards (JPA) 321</p> <p><b>Section II Query Data Using Java Runtime Objects Method 383</b></p> <p>6.3 Introduction to Runtime Object Method 383</p> <p>6.4 Create a Java Application Project to Access the SQL Server Database 384</p> <p>6.5 Create a Java Application Project to Access the Oracle Database 441</p> <p>6.6 Chapter Summary 455</p> <p><b>Chapter 7 Insert, Update, and Delete Data from Databases 463</b></p> <p><b>Section I Insert, Update and Delete Data Using Java Persistence API Wizards 463</b></p> <p>7.1 Perform Data Manipulations to SQL Server Database Using JPA Wizards 464</p> <p>7.2 Perform Data Manipulations to Oracle Database Using JPA Wizards 482</p> <p><b>Section II Insert, Update and Delete Data Using Java Runtime Objects Method 488</b></p> <p>7.3 Perform Data Manipulations to SQL Server Database Using Java Runtime Object 488</p> <p>7.4 Perform Data Manipulations to Oracle Database Using Java Runtime Object 502</p> <p>7.5 Perform Data Manipulations Using Updatable ResultSet 510</p> <p>7.6 Perform Data Manipulations Using Callable Statements 522</p> <p>7.7 Chapter Summary 550</p> <p><b>PART II Building Three-Tier Client–Server Applications 555</b></p> <p><b>Chapter 8 Developing Java Web Applications to Access Databases 557</b></p> <p>8.1 A Historical Review about Java Web Application Development 557</p> <p>8.2 Java EE Web Application Model 597</p> <p>8.3 The Architecture and Components of Java Web Applications 599</p> <p>8.4 Getting Started with Java Web Applications Using NetBeans IDE 611</p> <p>8.5 Build Java Web Project to Access SQL Server Database 625</p> <p>8.6 Build Java Web Project to Access and Manipulate Oracle Database 690</p> <p>8.7 Chapter Summary 764</p> <p><b>Chapter 9 Developing Java Web Services to Access Databases 769</b></p> <p>9.1 Introduction to Java Web Services 770</p> <p>9.2 The Structure and Components of SOAP-Based Web Services 772</p> <p>9.3 The Procedure of Building a Typical SOAP-Based Web Service Project 774</p> <p>9.4 Getting Started with Java Web Services Using NetBeans IDE 786</p> <p>9.5 Build Java Web Service Projects to Access SQL Server Database 787</p> <p>9.6 Build a Windows-Based Web Client Project to Consume the Web Service 795</p> <p>9.7 Build a Web-Based Client Project to Consume the Web Service 801</p> <p>9.8 Build Java Web Service to Insert Data into the SQL Server Database 808</p> <p>9.9 Build a Windows-Based Web Client Project to Consume the Web Service 811</p> <p>9.10 Build a Web-Based Client Project to Consume the Web Service 815</p> <p>9.11 Build Java Web Service to Update and Delete Data from the SQL Server Database 819</p> <p>9.12 Build a Windows-Based Web Client Project to Consume the Web Service 827</p> <p>9.13 Build a Web-Based Client Project to Consume the Web Service 834</p> <p>9.14 Build Java Web Service Projects to Access Oracle Databases 840</p> <p>9.15 Build a Windows-Based Web Client Project to Consume the Web Service 873</p> <p>9.16 Build a Web-Based Web Client Project to Consume the Web Service 890</p> <p>9.17 Chapter Summary 904</p> <p>Homework 905</p> <p><b>Index 909</b></p> <p><b>About the Author 919</b></p>
<b>Ying Bai</b>, PhD, is a Professor in the Department of Computer Science and Engineering at Johnson C. Smith University. He has extensive experience in database programming, software programming, and robotic controls. Dr. Bai is a Senior Member of the IEEE and a member of the ACM. He has published eight books and more than thirty papers on database programming, interface programming, and fuzzy logic controls.
<b>Covers fundamental and advanced Java database programming techniques for beginning and experienced readers</b> <p>This book covers the practical considerations and applications in database programming using Java NetBeans IDE, JavaServer Pages, JavaServer Faces, and Java Beans, and comes complete with authentic examples and detailed explanations.</p> <p>Two data-action methods are developed and presented in this important resource. With Java Persistence API and plug-in Tools, readers are directed step by step through the entire database programming development process and will be able to design and build professional data-action projects with a few lines of code in mere minutes. The second method, runtime object, allows readers to design and build more sophisticated and practical Java database applications.</p> <p>Advanced and updated Java database programming techniques such as Java Enterprise Edition development kits, Enterprise Java Beans, JavaServer Pages, JavaServer Faces, Java RowSet Object, and Java Updatable ResultSet are also discussed and implemented with numerous example projects.</p> <p>Ideal for classroom and professional training use, this text also features:</p> <ul> <li> <p>A detailed introduction to NetBeans Integrated Development Environment</p> </li> <li> <p>Java web-based database programming techniques (web applications and web services)</p> </li> <li> <p>More than thirty detailed, real-life sample projects analyzed via line-by-line illustrations</p> </li> <li> <p>Problems and solutions for each chapter</p> </li> <li> <p>A wealth of supplemental material available for download from the book's ftp site, including PowerPoint slides, solution manual, JSP pages, sample image files, and sample databases</p> </li> <li> <p>Coverage of two popular database systems: SQL Server 2008 and Oracle</p> </li> </ul> <p>This book provides undergraduate and graduate students as well as database programmers and software engineers with the necessary tools to handle the database programming issues in the Java NetBeans environment.</p>

Diese Produkte könnten Sie auch interessieren:

Domain Architectures
Domain Architectures
von: Daniel J. Duffy
PDF ebook
31,99 €