|
From: Juergen H. <ju...@in...> - 2005-06-17 09:09:02
|
We did consider supporting attach/detach hooks as well, but decided not to do so, because the exact syntax and behavior of those operations weren't clear back then. In contrast to that, almost all JDO 1.0 implementations had JDBC Connection exposure and flushing for ages. At this point of time, our plan is to not extend JdoDialect any further, because JDO 2.0 is just around the corner. Our JdoTemplate and DefaultJdoDialect already support the standard JDO 2.0 API, so once you get a JDO impl that supports JDO 2.0, that's gonna be immediately available to you. For JDO 2.0 previews such as current Kodo versions, you can always implement a JdoCallback and cast the passed-in PersistenceManager to the vendor-specific PM interface, calling attach/detach and other JDO 2.0 preview operations there. This can of course be replaced with straight JdoTemplate calls once the particular JDO impl officially supports the standard JDO 2.0 API. As a side note: The pluggable JDBC Connection exposure in JdoDialect can still be valuable even with JDO 2.0. For example, you might want to expose the native JDBC Connection to JDBC data access code, which could be casted to OracleConnection or the like. In this case, you still need vendor-specific extraction calls, because standard JDO 2.0 always exposes a wrapped handle... Juergen -----Original Message----- From: spr...@li... [mailto:spr...@li...]On Behalf Of Marc Logemann Sent: Thursday, June 16, 2005 10:56 PM To: spr...@li... Subject: [Springframework-developer] JdoDialect and detach? Hi, forget something in my last email a few minutes ago. JdoDialect only handles vendor differences regarding JdbcConnection obtaining, it would be nice to have the same for attach/detach APIs. This is of course non-existant when we all have JDO2, but the same goes for the JDBC connection issue. Or is this allready handled somewhere else? Have not found something yet. -- regards Marc Logemann [blog] http://www.logemann.org [busn] http://www.logentis.de ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |