Re: takeValuesFromDictionary: equvalent

From: Andrus (andru..bjectstyle.org)
Date: Fri Aug 16 2002 - 17:33:44 EDT

  • Next message: JR Ruggentaler: "RE: takeValuesFromDictionary: equvalent"

    At 04:24 PM 8/16/2002 -0500, JR Ruggentaler wrote:
    >Does Cayenne support updating a ObjEntity from a class that implements the
    >Map interface?

    I am not sure I understand the question. Do you mean ObjEntity (as a
    collection of metadata) or a CayenneDataObject - a superclass of your
    persistent objects?

    For the later case, in subclass you can do it like that:

    public MyDataObject extends CayenneDataObject {
        public void updateValues(Map map) {
            props.putAll(map);
        }
    }

    Andrus



    This archive was generated by hypermail 2.0.0 : Fri Aug 16 2002 - 17:33:17 EDT