wood burning stoves*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes regarding EJB QL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "regarding EJB QL " Watch "regarding EJB QL " New topic
Author

regarding EJB QL

raghu vadranam
Greenhorn

Joined: Sep 01, 2004
Posts: 23
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 ]

Raghu Nadh<br />SCJP 1.2,SCBCD
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
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 ]

    Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
     
    It is sorta covered in the JavaRanch Style Guide.
     
    subject: regarding EJB QL