return writer.toString();
}
public String runSelectWebRowset() throws SQLException, IOException, ClassNotFoundException {
WebRowSet webRs = null;
webRs = new WebRowSet();
// webRs.setCommand("select * from clob1") ;
webRs.setCommand( "select * from emp where deptno = ?" );
webRs.setInt( 1, 10 );
getConnection();
webRs.execute( conn );
freeConnection( conn );
// Writer writer = new FileWriter(new File("emp.xml")) ;
Writer writer = new StringWriter();
webRs.writeXml( writer );
writer.flush();
writer.close();
return writer.toString();