RE: writeNestedProperty

From: Gentry, Michael \(Contractor\) ("Gentry,)
Date: Thu Jun 29 2006 - 09:53:33 EDT

  • Next message: ap..indesay.co.nz: "Re: writeNestedProperty"

    You must've read my mind ...

    -----Original Message-----
    From: Andrus Adamchik [mailto:andru..bjectstyle.org]
    Sent: Thursday, June 29, 2006 9:52 AM
    To: cayenne-use..ncubator.apache.org
    Subject: Re: writeNestedProperty

    The same is true for "readNestedProperty" - if the list is returned
    somewhere in the middle of the path an exception is thrown. If you
    want to customize this behavior, it is totally up to you.

    Andrus

    On Jun 29, 2006, at 2:45 PM, Gentry, Michael ((Contractor)) wrote:

    > I'd think it would be fairly easy to write this, but what do you do if
    > the last item in the path returns a List of objects instead of a
    > single
    > object? Apply the value to all of them or throw an exception?
    >
    > /dev/mrg
    >
    > -----Original Message-----
    > From: Andrus Adamchik [mailto:andru..bjectstyle.org]
    > Sent: Thursday, June 29, 2006 9:32 AM
    > To: cayenne-use..ncubator.apache.org
    > Subject: Re: writeNestedProperty
    >
    >
    > Hi Andrew,
    >
    > No, unfortunately there's none. Should be easy to add via a custom
    > wedge class sitting between CayenneDataObject and your own class
    > (configurable in the Modeler)
    >
    > Andrus
    >
    > On Jun 29, 2006, at 1:58 PM, ap..indesay.co.nz wrote:
    >
    >> Hello;
    >>
    >> Can I ask if there's something like 'takeValueForKeyPath(...)' from
    >> KVC that can be used with 'DataObject'? I was looking for a
    >> 'writeNestedProperty', but couldn't see it.
    >>
    >> Regards;
    >>
    >> ___
    >> Andrew Lindesay
    >> www.lindesay.co.nz
    >>
    >>
    >>
    >>
    >
    >



    This archive was generated by hypermail 2.0.0 : Thu Jun 29 2006 - 09:53:58 EDT