|Home |Login |Registration |Struts Step by Step Tutorial |Hibernate Step by Step Tutorial |Spring Step by Step Tutorial |JSP Step by Step Tutorial |JDBC Step by Step Tutorial |Web Services Step by Step Tutorial |EJB fundamentals | ORACLE Step by Step Tutorial | SCJP 5.0 and SCJP 6.0 Study Guide | SCWCD 5.0 Study Guide | SCJP Tips
Java mock test | SCJP mock test | SCJP DUMP | SCBCD mock test |Java online test exam | JSP online test | ORACLE online test | Hibernate online test | Servlet online test | Struts online test | EJB online test | C online test | C++ online test | Aptitude online test

Java interview questions | JSP interview questions | ORACLE interview questions | Hibernate interview questions | Servlet interview questions | Struts interview questions | JDBC interview questions | C/C++ interview questions | Spring interview questions | JMS interview questions | Informatica interview questions | EJB interview questions | OOPS and Design Pattern interview questions
1600 PMP mock questions 1400 CAPM mock questions 800 SCJP 6 mock questions 600 OCAJP 7 mock questions 590 OCPJP 7 mock questions 556 SCWCD 5 mock questions 500 OCEJWCD 6 mock questions pdfDownload (java,struts, hibernet etc) JobsJobs and Walkins

 

Recent Questions

!!! JDBC Frequently Asked Questions !!!

Q. What is Rowset ? CachedRowSet,JDBCRowSet and WebRowSet ?

SCJP 1.5/1.6 Exam Kit

!!!Answer!!!- From Technical Expert

A RowSet object is a java bean component and extends the ResultSet interface.
The RowSet is majorly classified into two types :

1. Connected Rowset :
The connected rowset as the name suggests in connected to the database connection object like the resultset.
The JDBCRowSet is the example of the connected RowSet.

2. Disconnected RowSet:
The disconnected RowSet only connects to the database whenever required and after finishing the interaction they close the database connection.

There are three types of RowSet :

A CachedRowSet class?
a disconnected rowset that caches its data in memory; not suitable for very large data sets, but an ideal way to provide thin Java clients.

Example :
CachedRowSet cachedRs = new CachedRowSetImpl();
cachedRs.setUsername("scott");
cachedRs.setPassword("tiger");
cachedRs.setUrl("jdbc:oracle://localhost:3306/test");
cachedRs.setCommand("select * from employee");
cachedRs.setPageSize(4);
cachedRs.execute();
while (cachedRs.nextPage()) {
while (cachedRs.next()) {
System.out.println(cachedRs.getString("emp_name"));
}
}

A JDBCRowSet class?
a connected rowset that serves mainly as a thin wrapper around a ResultSet object to make a JDBC driver look like a JavaBeans component.
Example:
JdbcRowSet jdbcRs = new JdbcRowSetImpl();
jdbcRs.setUsername("scott");
jdbcRs.setPassword("tiger");
jdbcRs.setUrl("jdbc:oracle://localhost:3306/test");
jdbcRs.setCommand("select * from employee");
jdbcRs.execute();
while(jdbcRs.next()) {
System.out.println(jdbcRs.getString("emp_name"));
}


A WebRowSet class?
a connected rowset that uses the HTTP protocol internally to talk to a Java servlet that provides data access;
used to make it possible for thin web clients to retrieve and possibly update a set of rows.

Answered By : null Replied Date : Feb 28 2012
Answer :


Answered By : null Replied Date : Jan 10 2012
Answer :


Answered By : null Replied Date : Nov 30 2011
Answer :


Answered By : null Replied Date : Nov 26 2011
Answer :


Answered By : null Replied Date : Oct 15 2011
Answer :


Answered By : null Replied Date : Aug 12 2011
Answer :


Answered By : null Replied Date : Aug 10 2011
Answer :


Answered By : null Replied Date : Aug 5 2011
Answer :


Answered By : null Replied Date : Jun 17 2011
Answer :


Answered By : null Replied Date : Jun 6 2011
Answer :


Answered By : null Replied Date : May 7 2011
Answer :


Answered By : null Replied Date : May 1 2011
Answer :


Answered By : null Replied Date : Apr 28 2011
Answer :


Answered By : null Replied Date : Apr 11 2011
Answer :


Answered By : null Replied Date : Mar 31 2011
Answer :


Answered By : null Replied Date : Mar 29 2011
Answer :


Answered By : null Replied Date : Mar 23 2011
Answer :


Answered By : null Replied Date : Mar 17 2011
Answer :


Answered By : null Replied Date : Mar 6 2011
Answer :


Answered By : null Replied Date : Feb 27 2011
Answer :


Answered By : null Replied Date : Feb 23 2011
Answer :


Answered By : null Replied Date : Feb 22 2011
Answer :


Answered By : null Replied Date : Feb 13 2011
Answer :


Answered By : null Replied Date : Feb 13 2011
Answer :


Answered By : null Replied Date : Feb 3 2011
Answer :


Answered By : null Replied Date : Feb 3 2011
Answer :


Answered By : null Replied Date : Jan 27 2011
Answer :


Answered By : null Replied Date : Jan 21 2011
Answer :


Answered By : null Replied Date : Jan 15 2011
Answer :


Answered By : null Replied Date : Jan 6 2011
Answer :


Answered By : null Replied Date : Jan 3 2011
Answer :


Answered By : null Replied Date : Dec 28 2010
Answer :


Answered By : null Replied Date : Dec 26 2010
Answer :


Answered By : null Replied Date : Dec 20 2010
Answer :


Answered By : null Replied Date : Dec 10 2010
Answer :


Answered By : null Replied Date : Dec 1 2010
Answer :


Answered By : null Replied Date : Dec 1 2010
Answer :


Answered By : null Replied Date : Dec 1 2010
Answer :


Answered By : null Replied Date : Nov 27 2010
Answer :


Answered By : null Replied Date : Nov 27 2010
Answer :


Answered By : null Replied Date : Nov 20 2010
Answer :


Answered By : null Replied Date : Nov 20 2010
Answer :


Answered By : null Replied Date : Nov 17 2010
Answer :


Answered By : null Replied Date : Nov 16 2010
Answer :


Answered By : null Replied Date : Nov 11 2010
Answer :


Answered By : null Replied Date : Nov 9 2010
Answer :


Answered By : null Replied Date : Nov 1 2010
Answer :


Answered By : null Replied Date : Oct 28 2010
Answer :


Answered By : null Replied Date : Oct 25 2010
Answer :


Answered By : null Replied Date : Oct 25 2010
Answer :


Answered By : null Replied Date : Oct 20 2010
Answer :


Answered By : null Replied Date : Oct 16 2010
Answer :


Answered By : null Replied Date : Oct 13 2010
Answer :


Answered By : null Replied Date : Oct 10 2010
Answer :


Answered By : null Replied Date : Oct 2 2010
Answer :


Answered By : null Replied Date : Oct 2 2010
Answer :


Answered By : null Replied Date : Sep 25 2010
Answer :


Answered By : uu Replied Date : Aug 22 2009
Answer : uj


Answered By : null Replied Date : Sep 18 2010
Answer :


Answered By : null Replied Date : Sep 14 2010
Answer :


Answered By : null Replied Date : Sep 14 2010
Answer :


Answered By : null Replied Date : Sep 10 2010
Answer :


Answered By : null Replied Date : Sep 6 2010
Answer :


Answered By : null Replied Date : Sep 2 2010
Answer :


Answered By : null Replied Date : Sep 1 2010
Answer :


Answered By : null Replied Date : Aug 31 2010
Answer :


Answered By : null Replied Date : Aug 29 2010
Answer :


Answered By : null Replied Date : Aug 28 2010
Answer :


Answered By : null Replied Date : Aug 26 2010
Answer :


Answered By : null Replied Date : Aug 26 2010
Answer :


Answered By : null Replied Date : Aug 22 2010
Answer :


Answered By : null Replied Date : Aug 19 2010
Answer :


Answered By : null Replied Date : Aug 18 2010
Answer :


Answered By : null Replied Date : Aug 15 2010
Answer :


Answered By : null Replied Date : Aug 14 2010
Answer :


Answered By : null Replied Date : Aug 14 2010
Answer :


Answered By : null Replied Date : Aug 8 2010
Answer :


Answered By : null Replied Date : Jun 24 2012
Answer :


Answered By : null Replied Date : Jul 29 2012
Answer :


Answered By : null Replied Date : Jul 30 2012
Answer :


Answered By : null Replied Date : Aug 13 2012
Answer :


Answered By : null Replied Date : Sep 7 2012
Answer :


Answered By : null Replied Date : Sep 21 2012
Answer :


Answered By : null Replied Date : Oct 10 2012
Answer :


Answered By : null Replied Date : Dec 3 2012
Answer :


Answered By : null Replied Date : Jan 3 2013
Answer :


Answered By : null Replied Date : Feb 21 2013
Answer :


Answered By : null Replied Date : Feb 26 2013
Answer :


Answered By : null Replied Date : Mar 6 2013
Answer :


Answered By : null Replied Date : Mar 22 2013
Answer :


 

You can also contribute to this answer:

Your Name:
Answer:

 
Ask Question and get answer from Expert.
View Answers List from Expert.

The information you are posting should be related to java and ORACLE technology. Not political.