This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes abstract..... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "abstract....." Watch "abstract....." New topic
Author

abstract.....

bobby chaurasia
Ranch Hand

Joined: Mar 30, 2002
Posts: 84
why do we define the bean class as abstract and also the setters and the getter methods ?
Thanks
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
    
    6
This is a characteristic of how we define EJB 2.0 container managed entity beans. Basically, you write the signatures for the getters/setters, and the EJB container provides the actual implementations for you, including how those values are written to the database, etc.
Simon
Naidu Jitta
Greenhorn

Joined: May 12, 2003
Posts: 14
hai,
This aproach is introduced from EJB2.0. This feature is called as the Abstract Persistance Schema. This is doen to incerease the performance.
Previously, for every method call the fields are loaded or stored. But this is eliminated in the new specs increasing the performance...
Naidu
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: abstract.....
 
Similar Threads
difference between BufferedInputStream(or output) and other i/ostreams,regarding buffers.
Reg. native methods
WA #1.....word association
ABSTRACT
Tech Word Game