db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Bowen <s...@yahoo.com>
Subject Re: Complexe torque crieteria
Date Mon, 14 Mar 2005 12:16:10 GMT
Without looking too closely at you sepcific problem,
it seems very similar to one I had not so long ago. So
I will re-post a response I got from a kind Torque
user:

Criteria c = new Criteria();

Criteria.Criterion A =
criteria.getNewCriterion(ObjPeer.CODE,
0,Criteria.EQUAL);

Criteria.Criterion B =
criteria.getNewCriterion(ObjPeer.CODE, 0,
Criteria.NOT_EQUAL);

Criteria.Criterion C =
criteria.getNewCriterion(ObjPeer.TYPE, 
"C", Criteria.EQUAL);

criteria.add(A.or(B.and(C)));

Cheers


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

---------------------------------------------------------------------
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