New Posts New Posts RSS Feed: Query Question
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Query Question

 Post Reply Post Reply
Author
GrMikeD View Drop Down
Newbie
Newbie


Joined: 17-Feb-2008
Location: Greece
Posts: 4
Post Options Post Options   Quote GrMikeD Quote  Post ReplyReply Direct Link To This Post Topic: Query Question
    Posted: 21-Feb-2008 at 3:20pm
Hi!

I have a small question concerning the capabilities of OQL. If I have read correctly in the developer's manual, all the Query classes derive from the EntityQuery class. That means that they should always return a business object. What happens when I create passthru queries based on the following raw SQL statements:

1) SELECT name, email from Customer;

2) SELECT COUNT(*) from Customer; If I understood correctly, do I have in this case to retrieve all the Customer objects and then read the count property of their list?
Back to Top
GrMikeD View Drop Down
Newbie
Newbie


Joined: 17-Feb-2008
Location: Greece
Posts: 4
Post Options Post Options   Quote GrMikeD Quote  Post ReplyReply Direct Link To This Post Posted: 21-Feb-2008 at 11:30pm
Ok I found the answer, a Dynamic Entity should be what I am looking for...
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down