db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henning P. Schmiedehausen" <...@intermeta.de>
Subject Re: need help
Date Tue, 13 Jul 2004 07:21:37 GMT
=?utf-8?B?5b6Q5YGJKFdpbGxpYW0p?= <williamx@infoacer.com> writes:

>Hi , 
>Can anybody tell me how  I can implement a "select count(*) from Table " in Torque ? 
>I can not find this in Criteria class using doSelect() , is there other way to do ? 

Criteria crit = new Criteria();
List foo = YourPeer.doSelect(crit);
return foo.size();

Note that this is not exactly efficient. ;-) 


Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
hps@intermeta.de        +49 9131 50 654 0   http://www.intermeta.de/

RedHat Certified Engineer -- Jakarta Turbine Development  -- hero for hire
   Linux, Java, perl, Solaris -- Consulting, Training, Development

"Fighting for one's political stand is an honorable action, but re-
 fusing to acknowledge that there might be weaknesses in one's
 position - in order to identify them so that they can be remedied -
 is a large enough problem with the Open Source movement that it
 deserves to be on this list of the top five problems."
                       -- Michelle Levesque, "Fundamental Issues with
                                    Open Source Software Development"

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

View raw message