If you use EJB 1.1 you will get a java.util.Collection instead
of a java.util.Enumeration. In that case you can just call the
size() method on the collection.
Abdul Salam wrote:
>
> Hi guys,
>
> I am sorry, if i disturbed you by this mail.
>
> I am using Entity bean managed by container for
> retrieving data from the datbase. I am getting the
> individual records using finder methods. I want to
> find the total no. of records, the finder method
> returns.
>
> I know the simple way by going thru the Enumeration
> value in a loop. But if thousands of records were
> there then it will take much time. Is there any easier
> way to find the number of records the finder method
> return.
>
> I appreciate your help regarding this.
>
> Thanks.
>
> Abdul.
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
--
________________________________________________________________________________
Evan Ireland Sybase EAServer Engineering [EMAIL PROTECTED]
Wellington, New Zealand +64 4 934-5856
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".