/** * Specify the type that the result object is required to match. * <p>If not specified, the result value will be exposed as * returned by the JDBC driver. */ public void setResultType(Class<T> resultType) { this.rowMapper.setRequiredType(resultType); }
/** * Create a new {@code SingleColumnRowMapper}. * <p>Consider using the {@link #newInstance} factory method instead, * which allows for specifying the required type once only. * @param requiredType the type that each result object is expected to match */ public SingleColumnRowMapper(Class<T> requiredType) { setRequiredType(requiredType); }
/** * Create a new {@code SingleColumnRowMapper}. * <p>Consider using the {@link #newInstance} factory method instead, * which allows for specifying the required type once only. * @param requiredType the type that each result object is expected to match */ public SingleColumnRowMapper(Class<T> requiredType) { setRequiredType(requiredType); }
/** * Specify the type that the result object is required to match. * <p>If not specified, the result value will be exposed as * returned by the JDBC driver. */ public void setResultType(Class<T> resultType) { this.rowMapper.setRequiredType(resultType); }
/** * Specify the type that the result object is required to match. * <p>If not specified, the result value will be exposed as * returned by the JDBC driver. */ public void setResultType(Class<T> resultType) { this.rowMapper.setRequiredType(resultType); }