playframework/Play20 — pull request #204 by imikushin (2012-03-26 13:28:32+00:00)
Title: Anorm: add some type conversions

BUG: Instead of just `row[Long](columnName)` one has to write `row[BigDecimal](columnName).longValue()` if the column datatype is (for example) Oracle NUMBER. Otherwise one would get RuntimeException: TypeDoesNotMatch(Cannot convert 1:BigDecimal to Long for column .ID).

The attached pull request fixes it for cases when `rs.getObject(columnName)` is a numeric type, String or Boolean, providing conversions to String, Boolean, Int, Long, Short, Double, java.math.BigDecimal, java.math.BigInteger.
It also adds noop conversion, to enable `row[Any](columnName)` to get the original column value: the same as plain JDBC `rs.getObject(columnName)`