pgsql_resultset_to_rowset1
http://www.javadocexamples.com/java_source/__/te/TestSupportsTransactions.java.html

http://www.javadocexamples.com/java/sql/Connection/getMetaData%28%29.html

cachedrowset : pgsql_resultset_to_rowset1.txt
  • cachedrowset..populate(sesultset);
    • import javax.sql.rowset.CachedRowSet;
    •  Populates this CachedRowSet object with data from the given ResultSet object.
    • This method can be used as an alternative to the execute method when an application has a connection to an open ResultSet object.
    • It does not open a new connection and re-execute this CachedRowSet object's command. Using the populate method is more a matter of convenience when compared to using the version of execute that takes a ResultSet object.
  • JdbcRowset doest not have populate andfew other methods
  • JdbcRowSet rset; rset = new JdbcRowSetImpl(rs);

 
Output console:

http://www.techmyguru.com/jdbc/index.php?section=11

Home
Core Java
Swing
JDBC
EJB3
Spring
Struts2
Services
Others
Reach Us
Site Map
JDBC Tutorial
Overview
Driver Types
Driver Type1 Example
Driver Type4 Example
JDBC CRUD
Statement
PreparedStatement
CallableStatement
ResultSet
Scrollable ResultSet
ResultSetMetaData
DatabaseMetaData
JDBC Batch
JDBC Transactions
Type1 without DSN
Different way for DB Connection
JDBC Index