• 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:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

EJB-QL Select methods

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello helppp:

the spec says in 11.2.2


Select methods?Select methods are a special type of query method not directly exposed
through the client view. The Bean Provider typically uses select methods to select the persistent
state of an entity object or to select entities that are related to the entity bean for which the
query is defined. The result type of a select method can be an EJBLocalObject (or a collection
of EJBLocalObjects), an EJBObject (or a collection of EJBObjects), or a cmp-field value (or a
collection of such).



I think that the results should be EJBlocalObjects or collecions or cmp-field value (or a collection of such). Why does the result will be ejbObject (remotes) is it right?, In witch cases it would be objects remotes???

sorry my inglish is poor
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
give a example ,the following is the ejb-jar.xml OF A EJB NAMED CabinEJB:

<entity>
<ejb-name>CabinEJB</ejb-name>
<home>com.titan.cabin.CabinHomeRemote</home>
<remote>com.titan.cabin.CabinRemote</remote>
<ejb-class>com.titan.cabin.CabinBean</ejb-class>
<abstract-schema-name>Cruise</abstract-schema-name>
...
</entity>

THE following EJB QL is correct,right?

SELECT OBJECT(C) FROM Cruise C

so ,it can got a ejbobject or collections of ejbobjects
 
reply
    Bookmark Topic Watch Topic
  • New Topic