Re: Lazily column retrieval

From: Gili (cowwo..bs.darktech.org)
Date: Sat Aug 27 2005 - 15:41:19 EDT

  • Next message: Gili: "Feedback on SQLTemplate scripting"

    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 : Sat Aug 27 2005 - 15:41:18 EDT