aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
ABSTRACT
Reg. native methods
Tech Word Game
WA #1.....word association
difference between BufferedInputStream(or output) and other i/ostreams,regarding buffers.