Slide 47
Slide 47 text
public interface TypeHandler {
void setParameter(PreparedStatement ps, int i, T parameter, JdbcType jdbcType)
throws SQLException;
T getResult(ResultSet rs, String columnName) throws SQLException;
T getResult(ResultSet rs, int columnIndex) throws SQLException;
T getResult(CallableStatement cs, int columnIndex) throws SQLException;
}
ɾ1SFQBSFE4UBUFNFOUͷύϥϝʔλʔΛηοτ͢Δͱ͖ɺ
ɹ͋Δ͍3FTVMU4FU͔ΒΛऔಘ͢Δͱ͖ʹɺ
ɹඞͣͦͷ+BWBλΠϓʹରԠ͢Δ5ZQF)BOEMFS͕༻͞ΕΔɻ
ɾඪ४ͷλΠϓϋϯυϥʔΛΦʔόʔϥΠυͨ͠Γɺ
ɹࣗΒ࡞ͨ͠λΠϓϋϯυϥʔΛͬͯະରԠ͋Δ͍
ɹඇඪ४ͷܕΛѻ͏͜ͱՄೳɻ