Return-Path: Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 55824 invoked from network); 8 Aug 2003 10:43:44 -0000 Received: from unknown (HELO bestia.e-milio.com) (213.172.37.211) by daedalus.apache.org with SMTP; 8 Aug 2003 10:43:44 -0000 Received: from bestia (localhost [127.0.0.1]) by bestia.e-milio.com (8.12.9/8.12.9) with ESMTP id h78Ahgoe028442 for ; Fri, 8 Aug 2003 12:43:42 +0200 Message-Id: <200308081043.h78Ahgoe028442@bestia.e-milio.com> Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: binary To: commons-user@jakarta.apache.org From: Alfonso da Silva X-Originating-Ip: 80.103.10.65 MIME-Version: 1.0 Reply-To: Alfonso da Silva Date: Fri, 08 Aug 2003 12:43:42 MEST X-Mailer: EMUmail 4.5 Subject: Re: [BeanUtils] About DynaProperty definition X-Webmail-User: alfonsodasilva@correo.int X-RAVMilter-Version: 8.4.3(snapshot 20030212) (bestia) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Now I'm in hollidays... the 20th of Augoust i'll be back and i'll check it... thanxs!!! Alf. El Mon, 28 Jul 2003 21:17:26 +0100 robert burrell donkin escribi�: > i've committed something along the lines i suggested. i'd be grateful if > you could download and build the CVS HEAD version then check that the > additions satisfy your needs. > > - robert > > On Monday, July 28, 2003, at 06:34 PM, Alfonso da Silva wrote: > > > Hi! > > > > It sounds great! It's a better solution: clean and painless. > > > > Alf. > > > > > > El Sun, 27 Jul 2003 23:17:16 +0100 robert burrell donkin escribi�: > > > >> On Friday, July 25, 2003, at 01:12 PM, Alfonso da Silva wrote: > >> > >>> Hi! > >>> > >>> I have a suggestion about DynaProperty definition. I'm working in a > >>> persistent layer that works with Dyna* classes. > >>> > >>> With the DynaProperty class, the type of an attribute can be > >> defined. But > >>> if I have an indexed (or a mapped) attribute (Vector, ArrayList, > >>> HashMap...) I cann't define what class of objects can the DynaBean > >>> accepts. > >>> > >>> I need something like this: > >>> > >>> /* A mapped attribute whith Integer values (and String keys) */ > >>> DynaProperty p = new DynaProperty("integerMap",Integer.class); > >>> p.setMapped(true); > >>> > >>> or > >>> > >>> /* An indexed attribute whith String values */ > >>> DynaProperty p = new DynaProperty("stringArray",String.class); > >>> p.setIndexed(true); > >>> > >>> or > >>> > >>> /* A mapped attribute that accepts any value */ > >>> DynaProperty p = new DynaProperty("objectMap"); > >>> p.setMapped(true); > >>> > >>> or > >>> > >>> /* A simple Calendar attibute */ > >>> DynaProperty p = new DynaProperty("calendar",Calendar.class); > >>> > >>> I believe that with indexed attributes (the same with mapped > attributes) > >>> it isn't necessary to specify if it is a ArrayList or a Vector or an > >>> Array, because we recober the values of the DynaBean with the method > >>> get(java.lang.String name, int index) > >>> > >>> What do you think? > >> > >> hi alf > >> > >> this sounds like a pretty reasonable enhancement. i've taken a look at > >> clazz and they use getContentClazz and getKeyClazz so maybe we > could add > >> two additional methods getContentType and getKeyType. these values > would > >> be there just to support introspection of these values rather than > having > >> needing any changes to the current beanutils code, wouldn't they? > >> > > > > -- > > Mensaje enviado desde http://www.e-milio.com > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org -- Mensaje enviado desde http://www.e-milio.com