|
From: Rod J. <rod...@in...> - 2003-05-27 09:22:06
|
Isabelle, An interceptor could help so long as the insert was done behind an interface, rather than a class. (As we use dynamic proxies.) The new key could be attached to the AOP invocation by a KeyGeneratorInterceptor and therefore available to the object doing the insert. This would work with Oracle (SELECT nextval from DUAL first), but a different approach would be needed for DBs using autoincrement. So as our JDBC stuff is all classes, rather than interfaces (the only such part of the framework) AOP may not help. Regards, Rod > Hi everyone, > > I know very little about AOP right now except for the principle, but lying in bath last night it occurred to me that this whole database-dependent key generation problem just might be solved very elegantly using an interceptor. Am I right? > > Isabelle > > -- > Isabelle Muszynski > Software Engineer > Zandweellaan 4 > 2660 Antwerpen > Belgium > Tel. 32-(0)3-830 18 54 > Mobile: 32-(0)485 49 50 89 > Email: isa...@me... > Website: www.meta-logix.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: ObjectStore. > If flattening out C++ or Java code to make your application fit in a > relational database is painful, don't do it! Check out ObjectStore. > Now part of Progress Software. http://www.objectstore.net/sourceforge > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > |