23rd Jan
23rd Jan
*imp
RowSet in JDBC:
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
(i)createJdbcRowSet()
(ii)createCachedRowSet()
(iii)createWebRowSet()
(iv)createFilteredRowSet()
(v)createJoinRowSet()
-----------------------------------------------------------------
faq:
define RowSetProvider?
i
thi
following method to create implementation object for 'RowSetFactory':
(i)newFactory()
ipa
Method Signature of newFactory():
syntax:
1.JdbcRowSet:
dis-connected automatically.
Ve
interface.
syntax:
dis-connected automatically,
i
thi
CachedRowSet
interface.
ipa
syntax:
define WebRowSet?
syntax:
nk
(a)FilteredRowSet
(b)JoinRowSet
(a)FilteredRowSet:
=>FilterRowSet will hold the data retrieved based on Condition.
FilteredRowSet-Interface
syntax:
i
thi
(b)JoinRowSet:
=>JoinRowSet will hold the data retrived by joining more than one
ipa
RowSet-data
interface.
syntax:
sh
JoinRowSet jrs = rsf.createJoinRowSet();
ate
----------------------------------------------------------------------------------
nk
Ve