You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This refactoring is needed to support custom type unmappers. For example if I want JdbcTemplate to support joda-time types, I could subclass APSS and override setValue(ps, position, value) as
Stepan Koltsov opened SPR-3978 and commented
Please extract protected method
void setValue(ps, position, value)
from method
void setValues(ps)
of class ArgPreparedStatementSetter.
This refactoring is needed to support custom type unmappers. For example if I want JdbcTemplate to support joda-time types, I could subclass APSS and override setValue(ps, position, value) as
void setValue(ps, position, value) {
if (value instanceof org.joda.time.DateTime) {
ps.setTimestamp(new Timestamp(((DateTime) value).getTime());
} else {
super.setValue(ps, position, value);
}
}
Another use case is for various workarounds around buggy SQL drivers (I had problems with MSSQL's one).
This issue relates to #8657.
Affects: 2.1 M3
Referenced from: commits 3faf28e, e27330e
The text was updated successfully, but these errors were encountered: