Prototypes in CayenneModeller looking for feedback

From: Watkins, Garry (gwatkin..otleyrice.com)
Date: Wed Apr 20 2005 - 16:19:52 EDT

  • Next message: Fredrik Liden: "Ordering of fields"

    Before I start coding on my next project (Prototypes), I would like to
    discuss how we should handle these.

     

    Here are my ideas:

    a) In the modeler, on the DataMap Screen I would add two new tabs
    for DbAttributePrototypes (DAP) and ObjAttributePrototypes (OAP).

    b) These would look essentially the same as their counterparts on
    the DbEntity and ObjEntity attribute tabs.

    c) The existing attribute tabs would have a column for a prototype
    combo box that would list the appropriate prototypes from the DataMap
    tabs.

    d) If a prototype is selected it would override all of the
    attributes except for PK (on DbAttributes)

    e) Additionally I would like to add additional capability to the
    DbAttribute that would allow a custom java objects be created instead of
    the standard jdbc mapping from the table.

    a. It would need a class name for the target class that will be
    created example org.example.cayenne.dataTypes.FuzzyDate

    b. It would need a factory method specified as a fully qualified
    name example
    org.example.cayenne.dataTypes.CustomDataTypeFactory.fuzzyDateFromString

    c. It would need a conversion method to convert it back to
    something we can put in the generated sql such as
    org.example.cayenne.dataTypes.FuzzyDate.toString

    d. It would need a argument type either String or byte[]

    f) The new DAP would also have these properties

    g) While I am in there I would like to be able to add a read only
    flag on both dbAttributes and objAttributes. If the linked dbAttribute
    is read only then the objAttribute is read only also.

     

    I have not thought too much about the OAP's yet, so I am looking for
    some feedback from you guys.

     

    Thanks,

     

    Garry Watkins

     

    Programmer, Information Technology
    Motley Rice LLC
    28 Bridgeside Blvd.
    Mt. Pleasant, SC 29464
    843-216-9639
    gwatkin..otleyrice.com

     

    Confidential & Privileged

    Unless otherwise indicated or obvious from its nature, the information contained in this communication is attorney-client privileged and confidential information/work product. This communication is intended for the use of the individual or entity named above. If the reader of this communication is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error or are not sure whether it is privileged, please immediately notify us by return e-mail and destroy any copies--electronic, paper or otherwise--which you may have of this communication.



    This archive was generated by hypermail 2.0.0 : Wed Apr 20 2005 - 16:19:57 EDT