Jdbc 3
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Jdbc 3

on

  • 424 views

 

Statistics

Views

Total Views
424
Views on SlideShare
424
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Jdbc 3 Presentation Transcript

  • 1. RowSets tnngo2@gmail.com
  • 2. Why need RowSet?
  • 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. 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. 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. 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. 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. 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