Java interview questions: - Explain different types of rowset in java 5?
This is one of the typical
Java interview questions asked by the interviewer during the interview session. So one can proceed answering it as follows: -
JdbcRowSet:
- A wrapper around a ResultSet object that makes it possible to use the result set as a JavaBeans component
- By default all result set are scrollable and updatable
CachedRowSet
- object is a container for rows of data that caches its rows in memory, which makes it possible to operate without always being connected to its data source
- Further, it is a JavaBeans component and is scrollable, updatable, and serializable
FilteredRowSet
- Provides a degree of filtering on contents without heavy weight query language
- Extends CacheRowSet and overrides methods for filtering
JoinRowSet
- Provides a mechanism for combining related data from different RowSet objects into one JoinRowSet object, which represents an SQL JOIN
- can take one of the following to denote type of join
- CROSS_JOIN
- FULL_JOIN
- INNER_JOIN - the default if no JOIN type has been set
- LEFT_OUTER_JOIN
- RIGHT_OUTER_JOIN
WebRowSet
It describes the standard XML document format required when describing a RowSet object in XML
SyncResolver
Is a rowset object wgich implement SyncResolver interface which allows applications to use a manual decision tree to decide what should be done when a synchronization conflict occur
Also see video on Many To One relation in database using Hibernate as follows: -
Click for more
Java interview questions
Regards,
Visit for more author’s blog on Java interview questions.
http://
http://
Contributed by:
Shivprasad Koirala
We conduct training for Java/J2EE technologies like design patterns, J2EE, Struts, Hibernate, Spring, Rich Interface etc. and likes to write articles on the same in free time.
Resourse address on xpode.com
http://www.xpode.com/Print.aspx?Articleid=539
Click here to go on website
|