The recent database query encountered a problem, the database is a number Type field, in the Java type corresponding to have an integer and BigDecimal will appear;
The test found that when the database is SQL Server and DB2, the integer type is taken out with GetObject (), but the Oracle takes out an integer or BigDecimal type. The reason is that Oracle and Java type corresponds to number length, the following reference to Baidu Library @skycity521 library encountered this type of problem, to determine the length of each database and database field different Java data type is too cumbersome, can use GetString () to take the value, unified first into a string to determine the other attached java.sql.Types, database field type, Java data type of the corresponding relationship http://www.cnblogs.com/shishm/ Archive/2012/01/30/2332142.html
Oracle number corresponds to Java data type BigDecimal