How would you do date + 30 days, or compute a 15% increase to salary, or keep a sequence #, or incrment a count on each login?
.V

Trevor Morris wrote:
Where and when do you do data conversion between the DB, Business, and View
levels?  When you grab data out of the DB and set them in your VOs, do you
set dates as Dates, ints as ints, etc?  Or is it easier to just leave
everything as Strings and pass them around.  The majority of data in web
apps is only used for display.  Little data has any logic performed against
it.  If it does, you can just cast the String to the appropriate type when
needed.

String number1;
String number2;

e.g.  if (Integer.parseInt(number1) < Integer.parseInt(number2) {}

What purpose really is there in keeping the data in their native types?  If
you do, you have so much work to do in the transfer between the view and
business layers.

Thanks for any advice.

Trevor


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to