Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Object type from Finder Methods  RSS feed

 
Ricardo Taniguchi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!