/** * Type-casting convenience method which obtains an object from the map positionally * object obtained should have been created with {@link CallableStatementMapper} * * @param pos The out parameter position * @param type The java type to obtain * @param <T> the output parameter type * @return the output of name as type T */ public <T> T getObject(int pos, Class<T> type) { return type.cast(getObject(pos)); }
/** * Type-casting convenience method which obtains an object from the map, the * object obtained should have been created with {@link CallableStatementMapper} * * @param name The out parameter name * @param type The java type to obtain * @param <T> the output parameter type * @return the output of name as type T */ public <T> T getObject(String name, Class<T> type) { return type.cast(getObject(name)); }
/** * Type-casting convenience method which obtains an object from the map, the * object obtained should have been created with {@link CallableStatementMapper} * * @param name The out parameter name * @param type The java type to obtain * @param <T> the output parameter type * @return the output of name as type T */ public <T> T getObject(String name, Class<T> type) { return type.cast(getObject(name)); }
/** * Type-casting convenience method which obtains an object from the map positionally * object obtained should have been created with {@link CallableStatementMapper} * * @param pos The out parameter position * @param type The java type to obtain * @param <T> the output parameter type * @return the output of name as type T */ public <T> T getObject(int pos, Class<T> type) { return type.cast(getObject(pos)); }