Why need RowSet?Database Management Systems or the drivers providedby some database vendors do not support result setsthat 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