• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

entitybean question

 
Timber Lee
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which methods is optional in the Home Interface of an Entity Bean?
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
None. In fact, there is no such thing as an optional method in ANY Java interface.
However, since providing the implementation of the Home interface is the responsibility of the Container, this does not affect us.
 
Shankar Ranganathan
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, I agree. There is nothing like that.
 
Timber Lee
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but scea@whiz say create() is option
 
Thomas Hofmann
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can omit the create method in the home interface if the bean's data are created by external applications (e.g. legacy COBOL app) or tools (SQL Plus.
Extraction from EJB 2.0 spec:
An entity bean�s remote home interface can define zero or more create<METHOD>(...) methods,
Thomas
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic