Hi,
Despite advice to the contrary, I'm charging forward with my non-webmacro/all Java
application :-)
I'm trying to insert my new member object to the DB and thought - saveToStorage - but
this only copes with doUpdate (at least on TurbineUser).
Thus, I want to do this, change saveToStorage to check the Id() and if it is NEW_ID,
then get a valid Id and do a doInsert rather than a doUpdate - otherwise, do the usual
doUpdate
Any comments - sound valid?
My new user code then looks like this;
Member mem = (Member)data.getUser();
data.getParameters().setProperties(mem);
String validation = mem.validate();
if (validation == null) //valid
{
mem.saveToStorage();
data.setScreen(ScreenConstants.NEW_USER_CONFIRM);
}
else //invalid data - try again
{
data.setMessage( validation );
data.setScreen(ScreenConstants.NEW_USER);
}
...Chris
---
"There is no spoon"
______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]