• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Custom finder methods - EJBQL

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all...
I iam doing a projectin EJB. I have to retrieve the total no of records from a particular table.Do i have to use the find methods or select methods? I think i have to use find methods,b'se if i use select methods,i cannot access them from my client - JSPs.Am i correct?
Iam using Collection as the return type for my find methods.my problem is that iam getting records,but they are being displayed as various symbols,numbers - as objects even though i typecast or use toString method to display them in string format.
And another question is, once i retreive a record, how to display the various fields? For this do i have to change my return type as the EJBObject so that i can use the get or set methods? Please help me as soon as possible as i have to submit my project soon.
Thank You.
Radha.
 
Ranch Hand
Posts: 8946
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
EJBQL does not have a COUNT function defined.
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Pradeep Bhat:
EJBQL does not have a COUNT function defined.


EJB 2.1 has it.
 
reply
    Bookmark Topic Watch Topic
  • New Topic