Re: Why no getPropertyNames?

From: Mike Kienenberger (mkienen..mail.com)
Date: Thu Mar 06 2008 - 12:27:35 EST

  • Next message: Andrus Adamchik: "Re: Cayenne Transactions"

    Model metadata is available through the ObjEntity, ObjAttribute,
    ObjRelationship, DbEntity, DbAttribute, and DbRelationship classes.

    Typically, you would use an EntityResolver to get the appropriate
    object you wish to work with. For 3.0, you can use
    [Data/Object]Context.getEntityResolver() to acquire one. You can
    also fetch one via DataNode as well.

    On 3/6/08, Mary-Anne Wolf <mg..ocasystems.com> wrote:
    > In the DataObject, there is readProperty and writeProperty, but there
    > does not appear to be a method to get the names of the available properties.
    >
    > I could hack around this limitation by creating a custom superclass for
    > my CayenneDataObject instances,
    > but WHY is there no getPropertyNames method? Is there a way to get the
    > names of the properties
    > which I have not figured out?
    >
    >
    > Mary-Anne
    >
    >



    This archive was generated by hypermail 2.0.0 : Thu Mar 06 2008 - 12:28:11 EST