Re: partial resultset in java

From: "surabhi(dot)ahuja" <surabhi(dot)ahuja(at)iiitb(dot)ac(dot)in>
To: "William ZHANG" <uniware(at)zedware(dot)org>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: partial resultset in java
Date: 2006-03-23 03:56:57
Message-ID: 8626C1B7EB748940BCDD7596134632BE398669@jal.iiitb.ac.in
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


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(at)postgresql(dot)org on behalf of William ZHANG
Sent: Wed 3/22/2006 4:27 PM
To: pgsql-general(at)postgresql(dot)org
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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message surabhi.ahuja 2006-03-23 04:05:03 Re: back slash separated values
Previous Message Steven Brown 2006-03-23 02:33:36 Re: Enforcing serial uniqueness?