Professional Documents
Culture Documents
RESEARCH
SCHOOL OF ALLIED SCIENCES
FACULTY OF SCIENCE & TECHNOLOGY
MCA SEM II (OL Mode)
Page 1 of 21
Table of Contents
1. Java Database Connectivity (JDBC)? ............................................................................................................................. 3
2. JDBC vs. ODBC: .................................................................................................................................................................. 3
3. JDBC Architecture: .............................................................................................................................................................. 3
4. Drivers of JDBC: .................................................................................................................................................................. 3
5. Steps to Establish a Connection Using JDBC:............................................................................................................. 3
6. Java Persistence API (JPA)................................................................................................................................................. 3
7. JPA Architecture:.................................................................................................................................................................. 4
8. Entities and Entity Relationships: ................................................................................................................................... 4
9. Java Transaction API (JTA) ............................................................................................................................................... 4
10. Differences between JPA and JTA: ................................................................................................................................. 4
11. Concurrent Transactions vs. Distributed Transactions:............................................................................................ 4
12. Need for Mobile Databases: ........................................................................................................................................... 4
13. Architecture of Mobile Database: .................................................................................................................................. 4
Page 2 of 21
1. Java Database Connectivity (JDBC)?
3. JDBC Architecture:
• The JDBC architecture consists of several components: the JDBC API, JDBC
Drivers, Database, and the Java Application. Here's a simplified diagram:
• The Java Application uses the JDBC API to communicate with the database. The
JDBC API connects to the database using an appropriate JDBC driver, which varies
depending on the database vendor.
4. Drivers of JDBC:
7. JPA Architecture:
JPA architecture consists of entities (Java classes representing database tables), an entity
manager (responsible for managing entity objects), and a persistence unit (configuration
for database access). It also includes a provider, like Hibernate or EclipseLink, to
implement JPA functionality.
Mobile databases are designed for use in mobile and embedded systems, such as
smartphones, tablets, and IoT devices. They are needed because these devices often have
limited processing power, storage, and intermittent connectivity, making traditional
databases impractical. Mobile databases are optimized for these constraints.
The client-side database stores and manages local data, while synchronization ensures
data consistency between the mobile device and the server. Data synchronization can be
triggered manually or automatically based on network availability.
The architecture aims to provide offline access and efficient data transfer in resource-
constrained environments.
Page 5 of 21