Re: OSCache, caching, Decorator pattern
Andrus Adamchik <[email protected]>
| Newsgroups | gmane.comp.java.open-symphony.os-cache |
|---|---|
| Message-ID | <[email protected]> |
On Dec 29, 2003, at 6:50 PM, Sullivan, Sean C - MWT wrote: > My company is using the DAO pattern for data access operations. > > I am looking for articles or books that describe if/how to apply > the Decorator pattern for the purposes of caching. > > Thanks in advance. Hi Sullivan, I know that a choice of DAO over other persistent technologies may not be yours, and you and your company may have lots of reasons to stay with DAO. But it seems to me that by attempting to add things like caching to your framework you are basically building your own Object Relational Mapping (ORM) implementation. Writing a full-featured ORM from scratch and optimizing it for performance (esp. with a distributed cache) is far from a trivial task. Adding decorators doesn't make things easier either.... Why not use an existing mature ORM framework instead? I can recommend Cayenne for an ORM (being one of its creators): http://objectstyle.org/cayenne/ But there are many other choices as well. ------------------------------ Andrus Adamchik Cayenne Object-Relational Framework http://objectstyle.org/cayenne/ ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html