RowSets


          tnngo2@gmail.com
Why need RowSet?
Why need RowSet?
Database Management Systems or the drivers provided
by some database vendors do not support result sets
that are scrollable and/or updatable.
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.
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.
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
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
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

Jdbc 3

  • 1.
    RowSets tnngo2@gmail.com
  • 2.
  • 3.
    Why need RowSet? DatabaseManagement Systems or the drivers provided by some database vendors do not support result sets that 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