JDBC get/setObject vs. get/setSpecificType
Posted
by Joonas Pulakka
on Stack Overflow
See other posts from Stack Overflow
or by Joonas Pulakka
Published on 2010-03-30T06:31:59Z
Indexed on
2010/03/30
11:53 UTC
Read the original article
Hit count: 462
JDBC ResultSet offers getObject, getInt, getString etc. methods, and PreparedStatement has analogous setters. Apart from type compile-time type safety, do the type specific getters/setters have any (dis)advantages, or is it OK to use getObject/setObject everywhere?
© Stack Overflow or respective owner