Gili, why is it that you need pessimistic locking over optimistic
locking? In other words, what is your use-case? I'd be hard-pressed to
come up with a situation where I'd prefer pessimistic locking.
Thanks,
/dev/mrg
-----Original Message-----
From: Gili [mailto:cowwo..bs.darktech.org]
Sent: Saturday, August 27, 2005 3:41 PM
To: cayenne-use..bjectstyle.org
Subject: Re: Lazily column retrieval
Hi Andrus,
You're one of the main developers of Cayenne if I remember
correctly :)
Could you possibly help me add pissimistic locking support to Cayenne?
I've got a use-case that requires it.
I'm hoping to add both pissimistic locking and streaming BLOBs
to the
next release but I am new to Cayenne so I don't know where exactly to
start.
Thanks,
Gili
Andrus Adamchik wrote:
> I haven't heard of anyone posting a streaming [C|B]LOB ExtendedType.
A
> generic implementation would require some thought, but a simplified
> read-only custom version should be pretty easy to make.
>
> Reading blobs is much easier that writing them. Just implement
> "getClassName()" to return "java.sql.Blob" and "materializeObject
(..)"
> to call "getBlob()". Don't recall if some DB's (Oracle?) required an
> open connection that created a BLOB for the BLOB object to be
> accessible. If this is the case, I can think of a few workarounds for
> that.
>
> If you are going to try it and willing to share your code, please
> attach to CAY-316.
>
> Thanks
> Andrus
>
> On Aug 27, 2005, at 1:05 AM, Gili wrote:
>
>> Hi,
>>
>> I'm looking for something similar to http://objectstyle.org/
>> jira/secure/ViewIssue.jspa?key=CAY-316 which will allow me to lazily
>> retrieve certain blob columns. I was told someone on this list might
>> already have an ExtendedType which does this?
>>
>> Gili
>> --
>> http://www.desktopbeautifier.com/
>
>
>
-- http://www.desktopbeautifier.com/
This archive was generated by hypermail 2.0.0 : Mon Aug 29 2005 - 08:51:16 EDT