Below are the major points of difference:-
CachedRowSet: - Disconnected rowset always keeps the data in memory. It is scrollable and can also be serialized. It’s an ideal choice where we want to pass data between tiers or to do batch updates. "CachedRowSet" are disconnected so can be used for huge number of updates. Get the "CachedRowSet" object manipulate all your data and send the whole bunch of manipulated data in on go to the Database.
JDBCRowSet: - It’s opposite to "CachedRowSet". It maintains a connection to the database while the client has reference to it. So it’s a connected architecture as compared to CachedRowSet.
WebRowSet :- "WebRowSet" is a extension of "CachedRowSet". But the added feature is it can produce XML presentation of the data cached. If you are thinking of exposing your data through web services or to provide data to thin client which are written in different language other than JAVA. Best bet if you want to pass data in XML format over HTTP protocol.
See the following video on FlyWeight Pattern in Java: -
Click to get Java Training
Regards,
Get more Java Training from author’s blog
- “ResultSet” is a connected architecture while “RowSet” is a disconnected architecture.
- As “ResultSet” is a connected architecture we cannot serialize the object while “RowSet” can be serialized.
- “RowSet” object is a Java bean while “ResultSet” is not. In the below diagram you can see “RowSet” interface also derives from “BaseRowSet” interface. “BaseRowSet” interface has all the ingredients to make it a Java bean.
Figure: - Interface diagram for “Resultset” and “RowSet”
As "RowSet" is a disconnected from database it need to maintain Meta data for columns. "RowSet" can also provide scrollable resultsets or updatable resultsets even if the JDBC driver is not supporting the same. Java client can get a “RowSet” manipulate the same and finally send all the results to the database at one go. Sun has provided three implementation of “RowSet” as below:-CachedRowSet: - Disconnected rowset always keeps the data in memory. It is scrollable and can also be serialized. It’s an ideal choice where we want to pass data between tiers or to do batch updates. "CachedRowSet" are disconnected so can be used for huge number of updates. Get the "CachedRowSet" object manipulate all your data and send the whole bunch of manipulated data in on go to the Database.
JDBCRowSet: - It’s opposite to "CachedRowSet". It maintains a connection to the database while the client has reference to it. So it’s a connected architecture as compared to CachedRowSet.
WebRowSet :- "WebRowSet" is a extension of "CachedRowSet". But the added feature is it can produce XML presentation of the data cached. If you are thinking of exposing your data through web services or to provide data to thin client which are written in different language other than JAVA. Best bet if you want to pass data in XML format over HTTP protocol.
See the following video on FlyWeight Pattern in Java: -
Click to get Java Training
Regards,
Get more Java Training from author’s blog
Great explanation.
ReplyDeleteprathap
java training in chennai
Thanks for sharing this great article..It's really useful for us..
ReplyDeleteJAVA Training Chennai
Great and Useful Article.
ReplyDeleteOnline Java Course
Java Online Training
Java Course Online
J2EE training
online J2EE training
Best Recommended books for Spring framework
Java Interview Questions
Java Training Institutes in Chennai
Java Training in Chennai
J2EE Training in Chennai
java j2ee training institutes in chennai
Java Course in Chennai
Finding the time and actual effort to create a superb article like this is great thing. I’ll learn many new stuff right here! Good luck for the next post buddy..
ReplyDeleteSharepoint Training in Chennai
It is very helpful for me. Keep blogging like this.
ReplyDeleteAnalytics Company
US IT Staffing Agency
US IT Staffing
US Staffing Services
Permanent hire
Contract hire
Temporary to Permanent hire
thanks for sharing this information
ReplyDeleteBlue Prism Training in Bangalore
Blue Prism Training in BTM
RPA Training in Bangalore
RPA Training in BTM
Artificial Intelligence training in Bangalore
Artificial Intelligence training in BTM
ReplyDeleteNice post. Thanks for sharing! I want people to know just how good this information is in your blog. It’s interesting content and Great work.
machine learning training in hyderabad
data science course in hyderabad
business analytics courses in hyderabad
This is a really explainable very well and i got more information from your site.Very much useful for me to understand many concepts and helped me a lot.Best data science courses in hyerabad
ReplyDeletekeep up the good work. this is an Ossam post. This is to helpful, i have read here all post. i am impressed. thank you. this is our site please visit to know more information
ReplyDeletedata science training in courses
I am another client of this site so here I saw different articles and posts posted by this site,I inquisitive more enthusiasm for some of them trust you will give more data on this points in your next articles.
ReplyDeletedata scientist certification
Fantastic blog extremely good well enjoyed with the incredible informative content which surely activates the learners to gain the enough knowledge. Which in turn makes the readers to explore themselves and involve deeply in to the subject. Wish you to dispatch the similar content successively in future as well.
ReplyDeletedata science certification in bangalore
I surely acquiring more difficulties from each surprisingly more little bit of it
ReplyDeletedata scientist training and placement
This is a great article thanks for sharing this informative information. I will visit your blog regularly for some latest posts. I will visit your blog regularly for Some latest posts.
ReplyDeletedata scientist course in hyderabad
Thanks for posting the best information and the blog is very important.digital marketing institute in hyderabad
ReplyDeleteThanks for posting the best information and the blog is very important.artificial intelligence course in hyderabad
ReplyDeleteExtremely overall quite fascinating post. I was searching for this sort of data and delighted in perusing this one. Continue posting. A debt of gratitude is in order for sharing. data analytics course in delhi
ReplyDeleteLearn job-specific skills relevant to the job market using Python by registering for the rigorous Python Course in Hyderabad by professional trainers in real-time in AI Patasala.
ReplyDeleteOnline Python Course in Hyderabad
I see some amazingly important and kept up to length of your strength searching for in your on the site
ReplyDeletedata science training
What a really awesome post this is. Truly, one of the best posts I've ever witnessed to see in my whole life. Wow, just keep it up.
ReplyDeletedata science training
Thanks for posting the best information and the blog is very good.data analytics course in rajkot
ReplyDeleteThanks for posting the best information and the blog is very good.data science course in udaipur
ReplyDeleteThanks for posting the best information and the blog is very good.data science training in ranchi
ReplyDeleteThanks for posting the best information and the blog is very good.business analytics course in rajkot
ReplyDeleteThanks for posting the best information and the blog is very good.business analytics course in ranchi
ReplyDeleteThanks for posting the best information and the blog is very good.data science training in udaipur
ReplyDeleteHi buddies, it is a great written piece entirely defined, continue the good work constantly.
ReplyDeletecyber security course malaysia