Mark Neighbors wrote:
I see the new support for projectionAttributes in oql-ojb.g that generates pb report queries. Got an example to work.
I see OQLQueryImpl.execute calling performLockingIfRequired but only for collection queries.
Is there a way to coordinate report queries with odmg locking?
Perhaps by
(1) getting the LockMap from the LockMapFactory (2) retrieving the id in the report query
Only if there is a primary key returned by the report query. (In general report-queries need not return any PK columns)
(3) creating a temp object of the corresponding persistent class with just the id
Only if the query corresponds to a persistent class (report queries could just be any SELECT statement)
(4) caling LockMap.getWriter passing in the temp object (5) if null is returned then object is not write locked?
This seems to work.
If my two constraints are fulfilled this is OK. If not we are in trouble.
cheers, Thomas
Thanks in advance, Mark
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
