--- Scott Tavares <[EMAIL PROTECTED]> wrote:
> 
> ----- Original Message -----
> From: george stewart <[EMAIL PROTECTED]>
> To: Turbine <[EMAIL PROTECTED]>
> Sent: Sunday, January 09, 2000 10:11 AM
> Subject: Re: OPaL the Attr class
> 
> 
> <snip>
> > Currently, I just allocate a new set.  In the set
> and
> > get (should be maybe read and write) methods of
> the
> > class, the attribute list is cleared and new attrs
> are
> > added.
> 
> Huh? is this what mean:
> 
>     Visitor.addAttribute(new Attr("Password",
> "ABC"));
> 
> when Password's value changes to "XYZ":
> 
>     Visitor.addAttribute(new Attr("Password",
> "XYZ"));
> 
> This is fine by me but we will need a (String,
> String) constructor on the
> Attr class to cover the String datatype. Currently
> there is not one.
> 
Scott,
This would be internal to the derived class say
something like:
                
attributes.removeAll();
attributes.add("attributeName", getAttributeName());

And this really is only an efficiency consideration. 
My reflection code for doing this is already in the
apache sources.  

The user only needs to code:

object.setAttributeName(attributeValue);

This already works.

You don't need attribute set methods except for native
types.  Other types are objects, and hosting these is
already there.  

"Dorothy you have the power.  You always did."

Obviously, you're itching to get back into OPL. 
Here's my suggestion:

To get a better understanding of the current
implementation, it would be helpful to build a sample.
 All you need is a derived class, one class map, a db
broker, and some test data. Try save, delete, and
retrieve and step into these with a debugger.  This
will answer many of your questions.

jon kindly provided sample data.

The derived class just needs a bunch of set and get
methods for its data.

Everything else is already there.

Good hunting.
-- george


__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to