This week's book giveaway is in the HTML Pages with CSS and JavaScript forum.
We're giving away four copies of Testing JavaScript Applications and have Lucas da Costa on-line!
See this thread for details.
Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

EJB-QL Select methods

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
straws are for suckers. tiny ads are for attractive people.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic