Javadoc
Adapt for some types that we represent differently internally than their
JDBC types.
java.sql.Timestamp values that are not null are
converted to
long, but nullable timestamps are acquired using
java.sql.ResultSet#getObject(int) and therefore the Timestamp
value needs to be converted to a
Long. Similarly
java.sql.Date and
java.sql.Time values to
Integer.