Re: memory usage

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue Jan 31 2006 - 11:45:44 EST

  • Next message: Andrus Adamchik: "Re: memory usage"

    On Jan 31, 2006, at 7:01 AM, Tore Halset wrote:

    >> It is true that most (all?) implementations returned by the JDBC
    >> drivers won't work after ResultSet/Statement closing. However you
    >> can implement a Blob (or a similar custom class/interface) that
    >> stores an ObjectId and a DataContext and obtains a JDBC Blob on
    >> demand when the caller requests an InputStream.
    >
    > Sorry for beeing extremly slow.
    >
    > Thanks for the tip, but does the ExtendedType instance know about
    > the DataContext and ObjectId?

    Of course not. As usual I am throwing in the ideas without trying
    them first :-)

    Looks like you'll have to do some of your own "dependency injection",
    i.e. by overriding "CayenneDataObject.readProperty".

    But here is another untested idea: subclass your ExtendedType from
    org.objectstyle.cayenne.Fault, and Cayenne would do the injection for
    you via 'resolveFault' method.

    Andrus



    This archive was generated by hypermail 2.0.0 : Tue Jan 31 2006 - 11:45:46 EST