Meaningless Drivel is fun!*
The moose likes OO, Patterns, UML and Refactoring and the fly likes Data Reader Pattern?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Data Reader Pattern??" Watch "Data Reader Pattern??" New topic
Author

Data Reader Pattern??

Vijay Kashyap
Ranch Hand

Joined: Jul 30, 2001
Posts: 74
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
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
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

Joined: Jul 30, 2001
Posts: 74
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Data Reader Pattern??