You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by pablo-bh <pa...@bol.com.br> on 2003/07/31 15:19:58 UTC

Serialization/Deserialization for Value Object Pattern

I use the Value Object Pattern with
flags indicating if the attribute has
changed, like this:

private string attibute;
private boolean attributeHasChanged;

(...)

public void setAttribute(String
attribute) {
this.attribute = attribute;
attributeHasChanged(true); // new task
}

public void
attributeHasChanged(boolean state) {
this.attributeHasChanged = state;
}

The problem is that I can't just use
the
BeanSerialization/BeanDeserialization
because inside my setAttribute I have
a new operation to do (call method
attributeHasChanged()).

What are the best solution for my
case, or at least which ones??

Thanks

Pablo Pires
Belo Horizonte - Brazil 

 
__________________________________________________________________________
Acabe com aquelas janelinhas que pulam na sua tela.
AntiPop-up UOL - É grátis!
http://antipopup.uol.com.br/