File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "regarding EJB QL " Watch "regarding EJB QL " New topic

regarding EJB QL

raghu vadranam

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'something'

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

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

Thanks in advance.


[ 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
    I agree. Here's the link:
    subject: regarding EJB QL
    It's not a secret anymore!