Could anyone describe how null values are handled when
using Torque-generated peers to query and update a database?
Or point me to where this is documented?

For example, if I call Foo.getBar() to get a value from
column Bar in a row of table Foo, what do I get if it's
null?  I would guess that for Strings and ObjectKeys, I'd
get a null reference, but what about if Foo is integer?
It looks like Foo.getBar() returns a java int, and so has
no way of indicating null.

Likewise, how can I tell an instance of Foo to set its
Bar column to null when I do a Foo.save()?

For example, see IdTable.getQuantity() and setQuantity()
in the Torque howto.

Incidentally, the links from
http://jakarta.apache.org/turbine/howto/torque-howto.html
to the example Java source (like
http://jakarta.apache.org/turbine/howto/resources/IdTable.java)
are currently broken.

Thanks,

Jeremy Leader


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

Reply via email to