Re: Hello & Question...

From: Mike Kienenberger (mkienen..laska.net)
Date: Fri Feb 18 2005 - 12:50:36 EST

  • Next message: Fredrik Liden: "RE: Entries still appearing in the DataObject after deleting them inthe database"

    Jeff LaMarche <jeff_lamarch..ac.com> wrote:
    > On Feb 16, 2005, at 4:46 PM, Mike Kienenberger wrote:
    >
    > > I've never used Blobs, but I'd say that you just need to subclass
    > > org.objectstyle.cayenne.access.types.ByteArrayType and override
    > > setJdbcObject() to use setBinaryStream, and somehow provide that
    > > stream.
    > >
    > > To install it, you probably need to extend your JDBCAdaptor's
    > > configureExtendedTypes() method to register your replacement class.
    >
    > Hmm.. thanks.. I've looked at the code, and it mostly makes sense. I'd
    > then have to change the class in modeler for my BLOB attributes to use
    > my new subclass?

    I think it might be automatic once you've provided an alternate JDBCAdatpor,
    but I don't know for sure.

    -Mike



    This archive was generated by hypermail 2.0.0 : Fri Feb 18 2005 - 12:49:55 EST