Search Postgresql Archives

Re: partial resultset in java

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Title: Re: [GENERAL] partial resultset in java
 
on which object is this method "cancel()" avaialble.
the peice of code that i am looking at right now is :
 
Statement stmt_ = this.dbSession_.getDBConnection().createStatement();
String queryStr = dbxQuery.createQuery(DBObject.getLevelNumber(qLevel), q, this);
long t = System.currentTimeMillis();
rs = stmt_.executeQuery(queryStr);
this.dbSession_.logger_.log(Level.FINE, "GOT RESULT SET;"
 + (System.currentTimeMillis() - t));
   
ResultSetMetaData rsmd = rs.getMetaData();
   int colCount = rsmd.getColumnCount();
   t = System.currentTimeMillis();
   while (rs.next()) {
    vals = new HashMap();
    for (int j = 0; j < colCount; j++) {
     vals.put(rsmd.getColumnName(j + 1), rs.getObject(j + 1));
    }
    objList.add(new DBObject(qLevel, vals, this.dbSession_));
   }
   this.dbSession_.logger_.log(Level.FINE, "CONVERT RESULTSET TO DBOBJECT;"
     + (System.currentTimeMillis() - t));
    
 
where exactly will the cancel be placed?
thanks,
regards
Surabhi

From: pgsql-general-owner@xxxxxxxxxxxxxx on behalf of William ZHANG
Sent: Wed 3/22/2006 4:27 PM
To: pgsql-general@xxxxxxxxxxxxxx
Subject: Re: [GENERAL] partial resultset in java

***********************
Your mail has been scanned by InterScan VirusWall.
***********-***********


There is a method called cancel() in interface Statement. But I don't know
if it is
implemented correctly in JDBC. Maybe you can try it.

Regards,
William ZHANG



---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux