Introduction
1: Getting Started with GlassFish
2:
Servlet Development and Deployment
3:
JavaServer Pages
4: Database Connectivity
5: JSP Standard Tag Library
6:
JavaServer Faces

7:
Java Messaging Service
8:
Security
9:
Enterprise JavaBeans
10:
Web Services
11: Beyond Java EEAppendix A:
Sending Email from Java EE Applications
Appendix B:
IDE Integration
Index
Latest Updates
Free Chapter:
Chapter 6:
JavaServer Faces [
892 kB PDF]
Code Download
Contact
us
|
Chapter 4: Database Connectivity
Any non-trivial Java EE application will persist data to a relational database. In this
chapter, we will cover how to connect to a database and perform CRUD operations
(Create, Read, Update, Delete). There are two ways a Java EE application can interact
with a relational database: through the Java Database Connectivity (JDBC) API or
through the Java Persistence API (JPA). Both of these approaches will be discussed
in this chapter.
The topics covered in this chapter include: -
Retrieving data from a database through JDBC
-
Inserting data into a database through JDBC
-
Updating data in a database through JDBC
-
Deleting data in a database through JDBC
-
Retrieving data from a database through JPA
-
Inserting data into a database through JPA
-
Updating data in a database through JPA
-
Deleting data in a database through JPA
|
Chapter 4: Database Connectivity
- The CustomerDB Database
- JDBC
- Retrieving Data from a Database
- Modifying Database Data
- The Java Persistence API
- Entity Relationships
- One-to-One Relationships
- One-to-Many Relationships
- Many-to-Many Relationships
- Composite Primary Keys
- Java Persistence Query Language
- Final Notes
- Summary
|
|
Paperback 400 pages
Released: October 2007
ISBN:
1847192602
ISBN 13:
978-1-847192-60-8 |
|
|
|
|