I have Mastering Enterprise JavaBeans version 2.0
I thought that all queries made in the home interface had to start with 'findBy'
however, this book has an example called
int getTotalBankValue();
i am assuming this is implemented by the container different right? can someone explain this to me?
-
non findBy queries in home interface? (4 messages)
- Posted by: Ryan Gaffuri
- Posted on: March 30 2005 23:25 EST
Threaded Messages (4)
- Home Business Method by Anil Kumar Sadineni on March 31 2005 16:50 EST
- ejb question by Ryan Gaffuri on March 31 2005 19:57 EST
-
ejb question by Anil Kumar Sadineni on April 01 2005 11:43 EST
- ejb question by sawan parihar on April 03 2005 11:42 EDT
-
ejb question by Anil Kumar Sadineni on April 01 2005 11:43 EST
- ejb question by Ryan Gaffuri on March 31 2005 19:57 EST
-
Home Business Method[ Go to top ]
- Posted by: Anil Kumar Sadineni
- Posted on: March 31 2005 16:50 EST
- in response to Ryan Gaffuri
Hi Bob,
getTotalBankValue() is Home business method, not the findBy method. You find matching 'ejbHome' prefix for these methodsin your bean class.
Anil. -
ejb question[ Go to top ]
- Posted by: Ryan Gaffuri
- Posted on: March 31 2005 19:57 EST
- in response to Anil Kumar Sadineni
what is the difference between a findBy method and a non-method that is a sql call? they look to be the same thing. -
ejb question[ Go to top ]
- Posted by: Anil Kumar Sadineni
- Posted on: April 01 2005 11:43 EST
- in response to Ryan Gaffuri
findBy methods return only remote/local component interfaces. The home business methods return the any RMI/IIOP complaint data types.
Anil. -
ejb question[ Go to top ]
- Posted by: sawan parihar
- Posted on: April 03 2005 23:42 EDT
- in response to Anil Kumar Sadineni
The container will give the implementation of the finBy method and there won't be any corresponding method in the bean class. Where as for the other home business methods there has to be a 'ejbHome<homeMethodName>' method.
The home business methods are for when you need to do something with the bunch of records and not one .
hope that helps