Treatment of SMALLINT in Java Program

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mark A

    Treatment of SMALLINT in Java Program

    Does a java program treat a DB2 column defined as SMALLINT any different
    than INT?

    In other words, if I changed a column from INT to SMALLINT, would that
    require any java coding change?


  • jefftyzzer

    #2
    Re: Treatment of SMALLINT in Java Program

    On Jul 22, 10:53 am, "Mark A" <nob...@nowhere .comwrote:
    Does a java program treat a DB2 column defined as SMALLINT any different
    than INT?
    >
    In other words, if I changed a column from INT to SMALLINT, would that
    require any java coding change?
    While IBM recommends that you map INT to int and SMALLINT to short
    (http://www.ibm.com/developerworks/db...le/dm-0510law/
    index.html), as long as your Java data type remains the larger of the
    two--namely, int--then there should be no issue with such a change.

    --Jeff

    Comment

    Working...