Announcement Announcement Module
Collapse
No announcement yet.
How to get and Integer from a resultset? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to get and Integer from a resultset?

    Hello Evrybody

    I'm newby with spring and java, so please sorry if I'm asking something trivial.

    How dow I set the value of a column to an Integer property of a bean?
    By default the resultset is returning the object type of the column as a BigDecimal; getInt() is not OK for me because in case of SQL value NULL it always return 0.

    Thanks in advance

  • #2
    Have you had a look at the JavaDoc?
    http://java.sun.com/j2se/1.4.2/docs/...a.lang.String)
    Last edited by karldmoore; Aug 27th, 2007, 03:32 PM.

    Comment


    • #3
      Thanks for the link karld

      Comment

      Working...
      X