Forums Register Login

Object type from Finder Methods

+Pie Number of slices to send: Send
Hi all!
I'm working on a project with CMP 2.0 and a question raised using finder methods:
Everytime I call an finder method (e.g. findAll() ) I get a collection of objects, right? Which type of objects are these ones?
In my case I have a EJB Entity class called TestEJB. My local interfaces will be TestLocalHome and TestLocal, right?
Will my object be a TestLocalHome? A TestLocal?
And when I use the Value Object Pattern?
Is this object still an xxLocalxx object? Or may I cast these objects as Value Objects? I'm using a Value Object containing all the fields from my CMP EJB.
I'm using the implementation suggested by XDoclet as a Value Object pattern.
Thanks in advance!
Ricardo
+Pie Number of slices to send: Send
 

Everytime I call an finder method (e.g. findAll() ) I get a collection of objects, right? Which type of objects are these ones?


Local component interfaces in your case.

In my case I have a EJB Entity class called TestEJB. My local interfaces will be TestLocalHome and TestLocal, right?
Will my object be a TestLocalHome? A TestLocal?


It will be TestLocal.
For Value objects or rather Transfer Object
java.sun.com/blueprints/patterns/TransferObject.html
When I was younger I felt like a man trapped inside a woman’s body. Then I was born. My twin is a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 478 times.
Similar Threads
Problem in getting Max value of row element through EJB-QL.....
Use of DAO in SCJEA Assignment
Transaction time out
Finder methods for CMP beans
How to get generated primary key value?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 01:29:48.