Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Designing Reports  RSS feed

 
Jagmohan Negi
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can i use CachedRowSet in transferring my data from EJB layer to Web Layer, how much it is going to impact on application performance level, or I have to use value objects. I am designing reports.


mohan
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A CachedRowSet is usually serializable, so it can certainly be passed to a remote client. But bear in mind that it is a ResultSet object (disconnected of course), so do you want your client to know that it dealing with a relational DB? This is why the use of a transfer object (new term for value object) is often advocated. My own preference is to always shield the client from implementation details, so I would use a transfer object.

Don't worry too much about performance, it's rare to find transfer objects a problem.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!