jQuery in Action, 3rd edition
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

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?

Peer Reynders

Joined: Aug 19, 2005
Posts: 2933
Check the Iterator Pattern:
[ January 29, 2007: Message edited by: Peer Reynders ]
Vijay Kashyap
Ranch Hand

Joined: Jul 30, 2001
Posts: 74

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??
It's not a secret anymore!