Practical Database Programming with Java 1st Edition Ying Bai 2024 Scribd Download
Practical Database Programming with Java 1st Edition Ying Bai 2024 Scribd Download
com
https://ebookname.com/product/practical-database-
programming-with-java-1st-edition-ying-bai/
OR CLICK BUTTON
DOWNLOAD EBOOK
https://ebookname.com/product/java-database-programming-bible-1st-
edition-john-odonahue/
ebookname.com
https://ebookname.com/product/oracle-database-programming-using-java-
and-web-services-1st-edition-kuassi-mensah/
ebookname.com
https://ebookname.com/product/learning-reactive-programming-with-
java-8-1st-edition-nickolay-tsvetinov/
ebookname.com
https://ebookname.com/product/on-the-road-meditations-for-men-who-
travel-1st-edition-william-marshall-duke/
ebookname.com
Naming the Land San Identity and Community Conservation in
Namibia s West Caprivi 1st Edition J. Taylor
https://ebookname.com/product/naming-the-land-san-identity-and-
community-conservation-in-namibia-s-west-caprivi-1st-edition-j-taylor/
ebookname.com
https://ebookname.com/product/pediatric-success-a-q-a-review-applying-
critical-thinking-to-test-taking-2nd-edition-beth-richardson-dns-rn-
cpnp/
ebookname.com
https://ebookname.com/product/visual-data-mining-techniques-and-tools-
for-data-visualization-and-mining-1st-edition-tom-soukup/
ebookname.com
https://ebookname.com/product/countdown-to-catastrophe-1st-edition-
marshall-cavendish-corporation/
ebookname.com
Practical Database
Programming with Java
Ying Bai
Department of Computer Science and Engineering
Johnson C. Smith University
Charlotte, North Carolina
IEEE PRESS
No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by
any means, electronic, mechanical, photocopying, recording, scanning, or otherwise, except as permitted under
Section 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of
the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance
Center, Inc., 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 750-4470, or on the web at
www.copyright.com. Requests to the Publisher for permission should be addressed to the Permissions
Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201)
748-6008, or online at http://www.wiley.com/go/permissions.
Limit of Liability/Disclaimer of Warranty: While the publisher and author have used their best efforts in
preparing this book, they make no representations or warranties with respect to the accuracy or
completeness of the contents of this book and specifically disclaim any implied warranties of merchantability
or fitness for a particular purpose. No warranty may be created or extended by sales representatives or
written sales materials. The advice and strategies contained herein may not be suitable for your situation. You
should consult with a professional where appropriate. Neither the publisher nor author shall be liable for any
loss of profit or any other commercial damages, including but not limited to special, incidental, consequential,
or other damages.
For general information on our other products and services or for technical support, please contact our
Customer Care Department within the United States at (800) 762-2974, outside the United States at (317)
572-3993 or fax (317) 572-4002.
Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not
be available in electronic formats. For more information about Wiley products, visit our web site at www.
wiley.com.
10 9 8 7 6 5 4 3 2 1
Preface xxiii
Acknowledgments xxv
Chapter 1 Introduction 1
What This Book Covers 2
How This Book Is Organized and How to Use This Book 3
How to Use the Source Code and Sample Databases 5
Instructor and Customer Support 6
Homework Solutions 7
5.3.4 Build
a Java Web Application Project 214
5.3.5 Build
a Java Enterprise Edition Project 214
5.3.5.1 Overview of Java Enterprise Edition 6 215
5.3.5.2 Install and Configure Java EE 6 Software and Tools 222
5.3.5.3 Create a Java EE 6 Web Application Project 224
5.3.5.4 Creating the Entity Classes from the Database 227
5.3.5.5 Creating Enterprise Java Beans 229
5.3.5.6 Using JavaServer Faces (JSF) 2.0 232
5.3.5.7 Creating the Manufacturer Managed Bean 234
5.3.5.8 Creating the Manufacturer Listing Web Page 235
5.3.5.9 Building and Running the First Java EE 6 Web Page 238
5.3.5.10Deploying the Project Using the Administration Console 239
5.3.5.11Creating the Manufacturer Details Web Page 241
5.3.5.12Creating and Editing the faces-config.xml Configuration File 242
5.3.5.13Editing the General Web Application Configuration
File web.xml 247
5.3.5.14 Modifying the JSF Pages to Perform Page Switching 248
5.3.5.15 Building and Running the Entire Java EE 6 Project 249
5.3.6 Build a Maven Project 251
5.3.6.1 Introduction to Maven 251
5.3.6.2 Introduction to Hibernate Framework 253
5.3.6.3 Installing and Configuring the Apache Maven 255
5.3.6.4 Configuring Maven Inside the NetBeans IDE 258
5.3.6.5 Creating a Maven Database Application Project 259
5.3.6.6 Adding Hibernate Files and Dependencies 261
5.3.6.7 Generating Hibernate Mapping Files and Java Classes 265
5.3.6.8 Creating the Application GUI 268
5.3.6.9 Creating the Query in the HQL Query Editor 270
5.3.6.10 Adding the Query to the GUI Form 272
5.3.7 Build a PHP Project 276
5.3.7.1 Introduction to PHP 276
5.3.7.2 Downloading and Installing Apache HTTP Web Server 277
5.3.7.3 Configuring and Testing the Installed Apache HTTP
Web Server 279
5.3.7.4 Downloading and Installing the PHP Engine 280
5.3.7.5 Testing the Installed PHP Engine 281
5.3.7.6 Creating a PHP Project 283
5.3.7.7 Downloading and Configuring MySQL Database Server 285
5.3.7.8 Configuring the MySQL Server in NetBeans IDE 288
5.3.7.9 Creating Our Sample Database MySQLSample 290
5.3.7.10 Building the Functions for the PHP Project 293
5.3.7.11 Running and Testing the PHP Project 297
5.3.8 Build a NetBeans Module 299
5.3.8.1 Create a New NetBeans Module Project 300
5.3.8.2 Create the Customer Entity Class and Wrap It into a Module 301
5.3.8.3 Create Other Related Modules 303
5.3.8.4 Create the User Interface Module 306
6.2.8 Use Java JPA Wizards to Query the Course Table 372
6.2.8.1 Create a New CourseFrame Class and Add It into Our Project 372
6.2.8.2 Add Course Entity Manager and JPA Components into
the Project 373
6.2.8.3 Use Entity Classes to Perform Data Query from the
Course Table 374
6.2.9 Use Java JPA Wizards to Query Oracle Database 381
6.5 Create a Java Application Project to Access the Oracle Database 441
6.5.1 Create Graphic User Interfaces 442
6.5.2 Perform the Data Query for the LogIn Table 442
6.5.2.1 Add Oracle JDBC Driver to the Project 442
6.5.2.2 Load and Register Oracle JDBC Driver 443
6.5.2.3 The JDBC Uniform Resource Locators (URLs) 443
6.5.3 Develop the Codes for the SelectionFrame Form 445
6.5.4 Perform the Data Query for the Faculty Table 445
6.5.4.1 Create an Oracle Package FacultyInfo 446
6.5.4.2 Develop the Codes to Perform the CallableStatement Query 447
6.5.5 Perform the Data Query for the Course Table 449
6.5.5.1 Create an Oracle Package FacultyCourse 449
6.5.5.2 Develop the Codes to Perform the CallableStatement Query 451
6.5.6 Query Data from the Student Table Using the Java RowSet Object 453
6.5.6.1 Modify the Codes in the Constructor of the
StudentFrame Class 453
6.5.6.2 Modify the Codes in the Select Button Click Event Handler 453
6.6 Chapter Summary 455
Homework 457
Section II Insert, Update and Delete Data Using Java Runtime Objects Method 488