• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

regarding EJB QL

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

1. I would like to know whether I have to use only Strings in IN operator in EJB Ql where clause.

2. Can I call CMR methods directly from a remote client? My question is CMR methods are returning local component interface, So How remote client can not get the local component interface?

3.Is there any difference between the following two statements.

* Select -------- from movieschema m,directorschema d
where m.title='something' and d.name='something'

* Select -------- from movieschema m
where m.title='something' and m.director.name='something'

4. Is primarykey should be always either userdefined or wrapper class?

Thanks in advance.

regards
RAGHU

[ September 25, 2004: Message edited by: raghu vadranam ]
[ September 25, 2004: Message edited by: raghu vadranam ]
 
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Geez ...

  • You can view the entire BNF of EJB-QL in the EJB specs to find this out.
  • You are right. CMR can only be used locally. If you wanted to do the same thing remotely, try wrapping that functionality in a business method.
  • Looks good to me.
  • Either. There are probably some specific rules about which regular Object-derived classes you can use, but you can still use them. (Like the anonymous primary key, Object).

  • [ September 26, 2004: Message edited by: Nathaniel Stoddard ]
     
    Men call me Jim. Women look past me to this tiny ad:
    the value of filler advertising in 2021
    https://coderanch.com/t/730886/filler-advertising
    reply
      Bookmark Topic Watch Topic
    • New Topic