wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 2921
    
    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??
 
Similar Threads
abstract method overriding
when to use abstract class and when to use an interface
Abstract Factory Pattern Vs Factory Pattern
abstract class
Is this a design pattern?