You are on page 1of 10

JAVA DATA BASED CONNECTIVITY – JBBC

BY

SUNDAY LOVINA MARKUS CFJ/ND/COM/2022/401

A COM 211 TECHNICAL PAPER ON THE VARIOUS TYPES OF DATABASE THAT ARE BEING
USED IN SYSTEM AND SOFTWARE DEVELOPMENT WITH A FOCUS ON JAVA DATA BASE
CONNECTIVITY (JDBC) AND ALL OTHER BBMS AND DATABASE DRIVERS SUPPORTED
AND USED BY/IN JAVA.

MARCH 2024

1
INTRODUCTION ...................................................................................1
AIMS AND OBJECTIVES………………………………………………..2

LITERATURE REVIEW ………………………………………………………….3

JDBC STRUCTURE………………………………………………..........................7

SECURITY ISSUES IN DATABASE BASE CONNECTIVITY.........................9

CONCLUSION........................9

REFERENCE............................10

2
INTRODUCTION

A database operation system( DBMS) is software designed to develop and manage the data

stored in databases. A database is a systematized collection of data stored and penetrated

electronically. It's an interface that allows communication between the database and the

software operation. Database connectivity can be done using different programming

languages such as Java, C, and HTML. A database is controlled by a database management

system (DBMS) and they can be used in a different operations, such as data warehousing,

online sale processing, etc. still, with a lot of database options, programmers frequently

struggle to choose the right database. This survey gives an overview of database types and

the security issues in database connectivity. Each database operation has its unique speed,

performance its utility.

AIMS AND OBJECTIVES

the primary Aim and ideal of this study is to examine different database software with a focus

on Java Database Connectivity (JDBC) and other DBMS and motorists used within the Java

ecosystem to help developers make informed decisions on what database to use for systems.

LITERATURE REVIEW

historically, two main types of databases existed, which are set-set-acquainted and

relational databases. Both types of databases had different internal structures. making

information accessble is the primary purpose of a database. They can be used for a variety

of tasks. Large quantities of information can be stored in databases in organized, easily

searchable ways. Database operation systems ( DBMSs) can be described as software that

supports communication between humans and the database. Different databases have been

3
developed over the times, and each design comes with its own limitations and strengths.

Some of them include:

Hierarchical Databases: Just as in any scale, this database follows the progression of data

being distributed in species or situations, wherein data is distributed grounded on a

common point of linkage

My SQL: My SQL is a popular database for web- grounded operations. One of the reasons for

its preference is its security and features

Fiqure 1: Hierarchical Database Example

Relational Databases: the most modified of all databases, these databases lead in the

product line along with their operation systems. This database is easy to master, every piece

of information has a relationship with every other piece of information.

4
Figure 2 Diagram representation of information relationship in relational database

NoSQL Databases: A NoSQL firstly pertaining tonon-SQL ornon-relational is a database that

provides a medium for storehouse and reclamation of data.

Pall Databases: A pall database is used where data requires a virtual terrain for storing and

executing over the pall platforms and there are so numerous pall computing services for

penetrating the data from the databases( like SaaS, Paas, etc).

Oracle: Oracle is a relational database operation system. It supports multiple data models

like document, graph, relational, and crucial- value within a single database.

Understanding the different types of databases is pivotal when opting one to support the

association’s thing. JDBC is an API( operation programming interface) used in Java

programming to interact with databases. Database API libraries are at the core of every

Web database application and gateway. Regardless how a Web database application is built

(whether by manually coding or using an application builder), database API libraries are

the foundation of database accessibility.

5
Enterprise operations created using the JAVA EE technology need to interact with

databases to store operation-specific information. interacting with a database requires

effective database connectivity, which can be achieved by using the ODBC( Open database

connectivity) driver/motorist. This driver which can be referred to as motor in some cases

is used with JDBC to interact or communicate with different kinds of databases such as

Oracle, MS Access, Mysql, and SQL garçon databases.

JDBC drivers or motorists:

JDBC drivers are customer-side appendages( that means it's installed on a customer

machine, not on the garcon or server) that convert requests from Java programs to a

language that the DBMS can understand. the drivers fall into one of the following types :

Type 1driver or JDBC- ODBC ground motorist/driver calls the native law of the locally

available ODBC motorist

Type 2driver or Native- API( incompletely java) calls database seller native library on a

customer side. This code also talks to the database over the network.

Type 3 motorist or Network Protocol ( completely java) is the pure-java motorist that talks

with the server- side middleware that also talks to the database.

Type 4 motorist or Thin motorist( completely java) is the pure- java motorist that uses

database native protocol.

6
JDBC STRUCTURE:

Figure 3 this is a illustration illustrating the structure of JDBC.

When a Java operation requires a database connection, it utilizes one of the Driver

Manager get Connection styles to establish a JDBC Connection. Once a connection is

established, a Statement can be created. To be able to connect to a SQL server database using

Java, you can use JDBC( Java Database Connectivity). JDBC is a standard API for connecting

to databases.

7
Here is an illustration code to connect to a SQL server database using JDBC:

import java.sql.Connection;

import java.sql.DriverManager;

import java.sql.SQLException;

public class SQLServerConnection {

public static void main(String[] args) {

String url = "jdbc:sqlserver://localhost:1433;databaseName=mydatabase";

String user = "username";

String password = "password";

try {

Connection conn = DriverManager.getConnection(url, user, password);

System.out.println("Connected to SQL Server database");

conn.close();

} catch (SQLException e) {

e.printStackTrace();

A relational database operation system( RDBMS) is an ideal option for the

development of an enrollment form OR any type of form in general. This is due to:

• Its Structured Data Storage

• Data Integrity Features

8
• important Querying Capabilities

• Acid parcels For Data thickness

• The Ease In learning It

• Support for normalization ways.

RDBMS servers are popular choices for securely managing enrollment form data

SECURITY ISSUES IN DATABASE BASE CONNECTIVITY

Security risks abound in web database applications due to the much loopholes of TCP/IP

and HTTP protocols. Without specialized software, internet traffic remains vulnerable to

attack by hackers. These vulnerabilities offer great opportunities for malicious users to

take advantage of. Measures include ensuring privacy and authenticity, non-fabrication and

repudiation, ristricting unauthorized actions, and stoping unknown executables. security

remains an evolving challenge in database connectivity, thus,the continued efforts for

improvement.

CONCLUSION AND RECOMMENDATIONS

This survey paper explores JDBC drivers/motorists, JDBC structure, and the benefits of

exercising RDBMS for enrollment form development. It delves into database types, JDBC's

part in Java programming, and the significance of informed database selection. The paper

surveys on the security issues in database connectivity and enhancing database relations in

Java operations. In addition to this survey, there is need read Chapter 29 of Thomas

Connolly and Carolyn Begg, “Database Systems”, (5th edn.) in other to have a broader

understanding.

9
REFERENCE:
ADate, C. J., Kannan, A., & Swamynathan, S. (2009). An Introduction to Database Systems (8th
ed.). Pearson Education.

Silberschatz, A., Korth, H. F., & Sudarshan, S. (2006). Database System Concepts (5th ed.).
McGraw-Hill Education (Asia).

Singh, S. K. (2011). Database Systems Concepts, Designs and Application (2nd ed.). Pearson
Education.

Rob, P., & Coronel, C. (2007). Database Systems Design, Implementation and Management (7th ed.).
Thomson Learning-Course Technology.

O’Neil, P., & O’Neil, E. (2001). Database Principles, Programming and Performance (1st ed.).
Harcourt Asia Pte. Ltd.

10

You might also like