Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

FineGrained Objects vs Coarse Grained Object

 
siva kumar
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the difference between Fine grained and Coarse Grained objects
 
Masoud Kalali
Author
Ranch Hand
Posts: 531
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
These terms used to describe the level of details exposed by a component public interface.
A component which its public interface expose so much details about it internal structure and function called fine-grained.
A component with a lower level of details in its public interface called coarse-grained.
when we want to have afew method call and perform many operation we use
coarse-grained -usually in remote clients-
In OR mapping when you map each table to one EJB -so each row is one EJB-
you did a fine-grained mapping (its not recommanded) and vice-versa.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic