0% found this document useful (0 votes)
5 views5 pages

23rd Jan

The document provides an overview of 'RowSet' in JDBC, detailing its interface, types (JdbcRowSet, CachedRowSet, WebRowSet, FilteredRowSet, JoinRowSet), and their usage in handling database query results. It also explains the 'RowSetFactory' and 'RowSetProvider' interfaces for creating RowSet objects. Additionally, it includes method signatures and syntax for creating various RowSet implementations.

Uploaded by

gajeli2027
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views5 pages

23rd Jan

The document provides an overview of 'RowSet' in JDBC, detailing its interface, types (JdbcRowSet, CachedRowSet, WebRowSet, FilteredRowSet, JoinRowSet), and their usage in handling database query results. It also explains the 'RowSetFactory' and 'RowSetProvider' interfaces for creating RowSet objects. Additionally, it includes method signatures and syntax for creating various RowSet implementations.

Uploaded by

gajeli2027
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Dt : 23/1/2024

*imp

RowSet in JDBC:

=>'RowSet' is an interface from javax.sql package and which is extended from

java.sql.ResultSet.

i
=>'RowSet' also used to hold result generated from select-queries.

thi
=>RowSet is categorized into two types:

1.JdbcRowSet

ipa
2.CachedRowSet
Ma
=>WebRowSet

(a)FilteredRowSet

(b)JoinRowSet
sh
ate

Hierarchy of RowSet:
nk
Ve
i
thi
ipa
Ma
sh
----------------------------------------------------------
ate

faq:

define RowSetFactory?
nk

=>'RowSetFactory' is an interface from javax.sql.rowset package and which


provide the
Ve

following methods to create RowSet-Objects:

(i)createJdbcRowSet()

(ii)createCachedRowSet()

(iii)createWebRowSet()

(iv)createFilteredRowSet()
(v)createJoinRowSet()

-----------------------------------------------------------------

faq:

define RowSetProvider?

=>'RowSetProvider' is a class from javax.sql.rowset package and which provide


the

i
thi
following method to create implementation object for 'RowSetFactory':

(i)newFactory()

ipa
Method Signature of newFactory():

public static javax.sql.rowset.RowSetFactory newFactory() throws


Ma
java.sql.SQLException;

syntax:

RowSetFactory rsf = RowSetProvider.newFactory();


sh
----------------------------------------------------------------------
ate

1.JdbcRowSet:

=>JdbcRowSet,after collecting select-query data the connection to DB product


is not
nk

dis-connected automatically.
Ve

=>we use createJdbcRowSet()-method to create implementation object for


JdbcRowSet

interface.

syntax:

JdbcRowSet jrs = rsf.createJdbcRowSet();


2.CachedRowSet:

=>CachedRowSet,after collecting select-query data the connection to DB


product is

dis-connected automatically,

=>we use createCachedRowSet()-method to create implementation object for

i
thi
CachedRowSet

interface.

ipa
syntax:

CachedRowSet crs = rsf.createCachedRowSet();


Ma
----------------------------------------------------------------------------

define WebRowSet?

=>WebRowSet in realtime is used to exchange data among Application Layers in


sh
WebServices.
ate

=>we use createWebRowSet()-method to create implementation object for


WebRowSet interface

syntax:
nk

WebRowSet wrs = rsf.createWebRowSet();


Ve

=>This WebRowSet is categorized into two types:

(a)FilteredRowSet

(b)JoinRowSet

(a)FilteredRowSet:
=>FilterRowSet will hold the data retrieved based on Condition.

=>we use createFilteredRowSet()-method to create implementation object for

FilteredRowSet-Interface

syntax:

FilteredRowSet frs = rsf.createFilteredRowSet();

i
thi
(b)JoinRowSet:

=>JoinRowSet will hold the data retrived by joining more than one

ipa
RowSet-data

=>we use createJoinRowSet()-method to create implementation object for


Ma
JoinRowSet

interface.

syntax:
sh
JoinRowSet jrs = rsf.createJoinRowSet();
ate

----------------------------------------------------------------------------------
nk
Ve

You might also like