RE: Null values and calling a setter.

2004-11-30 Thread Simon Fell
wn, Mike [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 30, 2004 9:29 AM > To: '[EMAIL PROTECTED]' > Subject: RE: Null values and calling a setter. > > I think I understand you but here's the question. Why would > you want your setter called for a null value?

Re: Null values and calling a setter.

2004-11-30 Thread Adrian Perez Jorge
Hi Mike, I need to represent the following cases: a) the property has been set to a "normal" value b) the property has not been set by the "bean client" (or also the "bean provider") c) the property has been set to a null value (not too different from a) because null is also a value, isn't

RE: Null values and calling a setter.

2004-11-30 Thread Brown, Mike
d want it to be called even when the value is null? -Original Message- From: Adrian Perez Jorge [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 30, 2004 11:18 AM To: [EMAIL PROTECTED] Subject: Null values and calling a setter. Hi all. Let's imagine a client sends a bean, and

Null values and calling a setter.

2004-11-30 Thread Adrian Perez Jorge
Hi all. Let's imagine a client sends a bean, and let's imagine one of the bean properties is null. Now, at the server side (in reality in both sides), the bean is a value object and the setter is like the following: public MyBean() { ... myPropertyHasBeenSet = false;