Skip to Main Content

Berkeley DB Family

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get a count of records when using Persistence API?

531207Aug 31 2006 — edited Sep 1 2006
i noticed there is no method i could use to get a count number of db record when using Persistence API.
by now i'm using:

while(myEntityCursor.next()!=null)
count ++;

but i'm sure that would not be a good implementation. Could anyone help me for that?

Thanks
Richie
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 29 2006
Added on Aug 31 2006
2 comments
1,129 views