Re: [Objectbridge-developers] Querying databases (including local transactions changes)
Brought to you by:
thma
From: Geir O. G. <gr...@on...> - 2001-08-10 08:25:20
|
* Geir Ove Gr=F8nmo | It does also not have support for something like a savepoint where the | changes up till the current point in the transaction is actually | stored in the database without the transaction being commited. This | would allow the query results to be conformed automatically by the | database. |=20 | I guess savepoint would also be the most efficient way of supporting | such a feature - at least if there were support to actually only store | modifications that are relevant to the query you've about to | execute. In TopLink this is often not very efficient, since it is very | hard upfront knowing how to store the changes to efficiently sync the | database result with the inmemory-result. |=20 | Does ObjectBridge have support for conforming queries either in-memory | or in the database via savepoints? Being able to just save individual objects (not necessarily all transaction changes) in the database should be sufficient for my current needs. PersistenceBroker.savepoint() or PersistenceBroker.save(Object object) would be fine. :) Does PersistenceBroker.store(Object object) actually do this? The javadoc is somewhat unclear on whether the database is modified or not when this method is called. Are related objects also stored when calling this method? Geir O. |