Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EB bean class question

 
Sudd Ghosh
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Should all the business methods defined in the bean class of an entity bean be declared abstract ? It doesn't say so in the specs (10.6.8), but in Monson-Haefel's book, all the business methods are declared abstract.
Can someone clarify... Andrew are you there ?
Thanks, Sudd
 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sudd Ghosh:
Should all the business methods defined in the bean class of an entity bean be declared abstract ? It doesn't say so in the specs (10.6.8), but in Monson-Haefel's book, all the business methods are declared abstract.
Can someone clarify... Andrew are you there ?
Thanks, Sudd

Am not Andrew :-).
The business methods in a CMP entity bean need not be abstract. Only the methods accessor / mutators need to be abstract.
Infact one thing that comes to my mind immidiately are the ejbHome methods that we declare on the home but implement them in the bean. They defintely are not abstract.
HTH
 
Sudd Ghosh
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the explanation.
I realized it soon after posting the message that I was looking mainly at the accessors/mutators (which are handled by CMP) and some CMR fields (handled by query). This is the reason why they were declared abstract, since no implementation was there or needed in the bean class.
Thanks, Sudd
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic