RowSets          tnngo2@gmail.com
Why need RowSet?
Why need RowSet?Database Management Systems or the drivers providedby some database vendors do not support result setsthat...
Benefits of RowSet     provides scrollability and updatability for any kind of     DBMS or driver.     A RowSet object, be...
Types of RowSets     RowSets are classified depending on the duration of their     connection to the database            =...
Implementation of “RowSet”     CachedRowSet           . disconnected rowset that caches its data in           memory      ...
CachedRowSet    stores or caches its data in memory so that it can    operate on its on data rather than depending on the ...
JdbcRowSet    A JdbcRowSet obj is an enhanced and extended ResultSet    obj which has certain properties and a listener   ...
Upcoming SlideShare
Loading in …5
×

Jdbc 3

448 views
397 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
448
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Jdbc 3

  1. 1. RowSets tnngo2@gmail.com
  2. 2. Why need RowSet?
  3. 3. Why need RowSet?Database Management Systems or the drivers providedby some database vendors do not support result setsthat are scrollable and/or updatable.
  4. 4. Benefits of RowSet provides scrollability and updatability for any kind of DBMS or driver. A RowSet object, being a JavaBeans component can be used to notify other registered GUI components of a change.
  5. 5. Types of RowSets RowSets are classified depending on the duration of their connection to the database => Connected or Disconnected A connected Rowset obj uses a JDBC driver to establish a connection that maintained throughout the lifespan of the RowSet obj. A disconnected RowSet obj connect to read or write. After completion, it disconnects from the data source.
  6. 6. Implementation of “RowSet” CachedRowSet . disconnected rowset that caches its data in memory . Ideal way to provide thin Java clients (PDA …) JdbcRowSet . connected rowset that serves mainly as a think wrapper around ResultSet object WebRowSet . connected rowset that uses the HTTP protocol internally to talk to a Java servlet that provides data access
  7. 7. CachedRowSet stores or caches its data in memory so that it can operate on its on data rather than depending on the data stored in a db. http://pastebin.com/6haZewcS
  8. 8. JdbcRowSet A JdbcRowSet obj is an enhanced and extended ResultSet obj which has certain properties and a listener mechanism that make it a JavaBeans components http://pastebin.com/4DAEwkE4

×