File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 2906
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 ]

"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
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.
 
Consider Paul's rocket mass heater.
 
subject: Data Reader Pattern??
 
Similar Threads
when to use abstract class and when to use an interface
Is this a design pattern?
abstract method overriding
Abstract Factory Pattern Vs Factory Pattern
abstract class