|
From: <jue...@we...> - 2004-05-04 07:04:45
|
Isn't field-specific lazy loading a required feature of JDO? What does = Kodo JDO offer in that respect, for example? Can you lazily load LOB = fields in a database-independent manner with Kodo? =20 Juergen =20 ________________________________ Von: spr...@li... im Auftrag = von Colin Sampaleanu Gesendet: Mo 03.05.2004 20:18 An: spr...@li... Betreff: Re: [Springframework-developer] Exposing LOB support to Jdbc = Object layer j=FCrgen h=F6ller [werk3AT] wrote: >That looks interesting! I didn't think about overloaded SqlParameter = constructors before; that definitely makes sense. How to you handle the = LobCreator lifecycle there? LobCreator.close needs to be invoked after = PreparedStatement execution (but before transaction completion). > >BTW, I've recently refined the LOB support for jdbc.core: There are = AbstractLobCreatingPreparedStatementCallback and = AbstractLobStreamingResultSetExtractor classes now (don't we love our = class naming patterns!), to make LOB handling via JdbcTemplate more = convenient. Have a look at imagedb's DefaultImageDatabase class for = usage examples. > >There's also a ClobStringType class in our Hibernate support, for = storing String properties in CLOB fields. That allows to transparently = store long Strings in Oracle CLOBs respectively MySQL text fields, for = example. It registers a TransactionSynchronization for the = LobCreator.close call, so just works within a Spring transaction. >=20 > I've been trying to convince Gavin for ages to make it possible to lazy load columns (not just collections), which would make stuff like ClobStringType a lot more useful. Right now if you have a table with a LOB column and use something like ClobStringType you pay the price and load it even if you don't need it. Oh well... ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id=8166&op=3Dick _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |