• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Data Reader Pattern??

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I came across an Abstract class DataReader which looks like.



There are few different implementation of this abstract class used in application.


Can anyone tells me it is any sort of Design pattern?

Regards,
Vijay
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check the Iterator Pattern:
http://www.allapplabs.com/java_design_patterns/iterator_pattern.htm
http://www.fluffycat.com/Java-Design-Patterns/Iterator/
[ January 29, 2007: Message edited by: Peer Reynders ]
 
Vijay Kashyap
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Peer,

Thanks for the links.

I came across a post (donot remember which forum) that highlights a pretty nice solution for data traversing where by callee will handle all SQLExceptions and take appropriate actions. That interface looks similar to the one I have described.

I need some more feedback as to why and when one should use this approach.

Is it making any sense, Whatever I have written.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic