java类型和数据库字段类型的转换
    在开发web应用中,针对不同的数据库类型,我们需要在我们的程序中做各种不同的转换<o:p></o:p>
数字―――>数字数字对象<o:p></o:p>
    - int?i?=?169;? ?? 
 
    - Integer?io?=?new?Integer(?i?);? ?? 
 
    - i?=?io.intValue();? ?? 
 
 
数字―――>字符串
    - String?s?=?String.valueOf(?value);?//?其中?value?为任意一种数字类型。? ?? 
 
    - 或者 ?? 
 
    - String?a=Integer.toString('整型'); ?? 
 
    - ?? 
 
 
字符串―――>数字
    - String?s?=?"169";? ?? 
 
    - byte?b?=?Byte.parseByte(?s?);? ?? 
 
    - int?i?=?Integer.parseInt(?s?);? ?? 
 
    - Double?d?=?Double.parseDouble(?s?); ?? 
 
    - ?? 
 
 
?
日期―――>字符串
<o:p></o:p>
?
?
字符串―――>日期
将字符串类型的日期dateString转换为一个Date
    - DateFormat?dateFormat?=?new?SimpleDateFormat("yyyy-MM-dd?kk:mm:ss.SSS",?Locale.ENGLISH);