Subject | Data Conversion |
---|---|
Author | John Lister |
Post date | 2002-09-18T11:41:57Z |
Was the discussion about converting data in setXXX (and getXXX)
functions resolved? The reason for asking is that i'm switching a
bigger project over to jaybird and need to convert all my setString
(x) to setInt(Integer.parseInt(x)), etc (i'm using strings as they
are parameters to a servlet). I don't mind going through and adding
the necessary conversion functions, but i'm trying to avoid creating
my own branch of the code. I realise there is the setObject function,
but i expect that this will be slower than explicit conversions.
I understand the problems with ambiguities, but we could make them
deprecated so at least you get a warning.. allowing you to change
them at will instead of all in one go...
Thoughts
JOHN
functions resolved? The reason for asking is that i'm switching a
bigger project over to jaybird and need to convert all my setString
(x) to setInt(Integer.parseInt(x)), etc (i'm using strings as they
are parameters to a servlet). I don't mind going through and adding
the necessary conversion functions, but i'm trying to avoid creating
my own branch of the code. I realise there is the setObject function,
but i expect that this will be slower than explicit conversions.
I understand the problems with ambiguities, but we could make them
deprecated so at least you get a warning.. allowing you to change
them at will instead of all in one go...
Thoughts
JOHN