Designing DAOs for data sources other than a database
Posted
by James P.
on Stack Overflow
See other posts from Stack Overflow
or by James P.
Published on 2010-03-28T13:10:24Z
Indexed on
2010/03/28
13:13 UTC
Read the original article
Hit count: 177
Hi,
Until now I've been used to using DAOs to retrieve information from databases. Other sources of data are possible though and I'm wondering if and how the pattern could be applied in general.
For example, I'm now working on an application that fetches XML on the web. The XML file could be considered as a data source and the actual fetching is similar in principle to a database request. I'm not quite sure how the DAO could be structured though.
Any views on the subject are welcome.
© Stack Overflow or respective owner