Re: CLSQL changes object behaviour
Edi Weitz <[email protected]>
| Newsgroups | gmane.lisp.clsql.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 9 Jun 2004 13:37:34 +0100 (BST), Marcus Pearce <[email protected]> wrote: > It just occurred to me that you might be able to resolve this > problem by (ab)using the CommonSQL compatible INSTANCE-REFRESHED > hook. An INSTANCE-REFRESHED method specialised on your chosen View > Classes (and containing code analagous to that in your :after > methods for INITIALIZE-INSTANCE) will be invoked on the newly > created objects (with slots already filled) returned by a call to > SELECT with :REFRESH t. From what you say, it sounds as though you'd > want to be doing this anyway. Hi Marcus! Ah, thanks, didn't know about that one. Now I see that it's mentioned in passing in the LW reference manual. I wouldn't call that "documented", though... :) However, this will only help with instances created by SELECT but not with newly created instances from MAKE-INSTANCE when *DB-AUTO-SYNC* is true. Hmm... Thanks anyway, Edi.