CBSE Class 12 Informatics Practices Java Database Connectivity To Mysql
CBSE Class 12 Informatics Practices Java Database Connectivity To Mysql
COM
Ans: The dialog created with JDialog can be customised in any form the user wants. Also
with JDialog, a windows default cloasing behaviour is available with minimize,
maximaize and close buttons.
A dialog created with JOptionPane can be one of the four pre-defined styles. Also, it only
offers a close button for window closing.
Unsolved Questions:
1. What are the various type of dialog options supported by JOptionPane?
2. Name four methods associated with JOption dialog.
3. Explain the various possible value for Option type property of JOptionPane dialog.
CHAPTER 9
JAVA DATABASE CONNECTIVITY TO MYSQL
Brief Summary of the Chapter:
m
o
.c
In this chapter we shall know how to connect the front end NetBeans application with back-end
databases through JDBC,ODBC for making GUI applications.
y
a
d
KEY POINTS:
o
t
s
e
i
d
u
t
s
.
w
w
MySQL provides connectivity for client applications developed in the Java Programming language
via a JDBC driver known as MySQL Connector/J
Connection:
A connection is the session between the application program and the database. To do anything with
database, one must have a connection object.
Connecting to MySQL from Java :
A result set (represented by a ResultSet object) refers to a logical set records that are fetched from the
database by executing a query and made available to the application program. There are various
resultSet methods such as: next( )
:moves the cursor forward on row.
first( )
Last( )
Absolute(int rno) :positions the cursor on the rno-th row of the ResultSet object.
getRow( )
u
t
s
.
y
a
d
o
t
s
e
i
d
m
o
.c
w
w
Unsolved Questions:
y
a
d
m
o
.c
o
t
s
e
i
d
u
t
CHAPTER
10
s
.
WEB APPLICATION
DEVELOPMENT
w
Brief Summary of the
Chapter:
ww
World Wide Web is an example of an information protocol/service that can be used to send
and receive information over the internet. It supports:
Multimedia Information (Text, Movies, Pictures, Sound, Programs etc)
Hyper Text Information :( Information that contains links to other information resources)
Graphical User Interface :(So users can point and click to request information instead of typing
in text commands)
The World Wide Web is an example of an information protocol/service that works using a
Client/Server software design. A service that uses Client/Server design requires two pieces of software
to work: Client software (e.g. Web Browser) to request information, and Server software(Web server)
to answer requests and provide their information. Most Web applications are designed this way.