Re: how to clear cache
Hans Novak <[email protected]> Tue, 25 Sep 2007 17:42:20 +0200
| Newsgroups | gmane.comp.jakarta.ojb.user |
|---|---|
| Message-ID | <[email protected]> |
> > PersistenceBroker.clearCache(); > to evict the whole cache yes, this works, but will increase the database access a lot. You speaks about the possibility, that ojb and mandragora can use the same PB ... how ? I have a dao class, with the broker. This broker is private and will not used in any other classes !? The other way is to clear only the obj with a oid - but what for oid ? (a uniqe id from a filed in database ?) But this operation willincrase the access to the db too.... The better way is to use the same broker, i think. Hans