db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Zhao" <wzhao6...@gmail.com>
Subject retrieve columns returned by doSelect(Criteria) query
Date Thu, 14 Dec 2006 23:36:00 GMT
Hi there,

If I did this:

		Criteria crit = new Criteria();
		crit.addJoin(Table1Peer.ID1,
Table2Peer.ID2,
			     Criteria.INNER_JOIN
			     );
		crit.addSelectColumn(Table1Peer.ID1);
		crit.addSelectColumn(Table2Peer.NAME);
		crit.addSelectColumn(Table2Peer.NOTES);
		List list = null;
		try {
			list = BasePeer.doSelect(crit);
		} catch (Exception e) {
			Log.error("Error runnnnning query: " +
e.getMessage());
		}

How can I retrieve the list of columns returned by the query?
Thanks very much in advance!

David

-- 
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.15.18/586 - Release Date: 12/13/2006
6:13 PM
 


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message