| java.lang.Object org.springframework.jdbc.core.simple.SimpleJdbcTemplate
Method Summary | |
public int[] | batchUpdate(String sql, List<Object[]> batchArgs) | public int[] | batchUpdate(String sql, List<Object[]> batchArgs, int[] argTypes) | public int[] | batchUpdate(String sql, Map[] batchValues) | public int[] | batchUpdate(String sql, SqlParameterSource[] batchArgs) | public JdbcOperations | getJdbcOperations() Expose the classic Spring JdbcTemplate to allow invocation of
less commonly used methods. | public NamedParameterJdbcOperations | getNamedParameterJdbcOperations() Expose the Spring NamedParameterJdbcTemplate to allow invocation of
less commonly used methods. | public List<T> | query(String sql, ParameterizedRowMapper<T> rm, Map args) | public List<T> | query(String sql, ParameterizedRowMapper<T> rm, SqlParameterSource args) | public List<T> | query(String sql, ParameterizedRowMapper<T> rm, Object... args) | public int | queryForInt(String sql, Map args) | public int | queryForInt(String sql, SqlParameterSource args) | public int | queryForInt(String sql, Object... args) | public List<Map<String, Object>> | queryForList(String sql, Map args) | public List<Map<String, Object>> | queryForList(String sql, SqlParameterSource args) | public List<Map<String, Object>> | queryForList(String sql, Object... args) | public long | queryForLong(String sql, Map args) | public long | queryForLong(String sql, SqlParameterSource args) | public long | queryForLong(String sql, Object... args) | public Map<String, Object> | queryForMap(String sql, Map args) | public Map<String, Object> | queryForMap(String sql, SqlParameterSource args) | public Map<String, Object> | queryForMap(String sql, Object... args) | public T | queryForObject(String sql, Class<T> requiredType, Map args) | public T | queryForObject(String sql, Class<T> requiredType, SqlParameterSource args) | public T | queryForObject(String sql, Class<T> requiredType, Object... args) | public T | queryForObject(String sql, ParameterizedRowMapper<T> rm, Map args) | public T | queryForObject(String sql, ParameterizedRowMapper<T> rm, SqlParameterSource args) | public T | queryForObject(String sql, ParameterizedRowMapper<T> rm, Object... args) | public int | update(String sql, Map args) | public int | update(String sql, SqlParameterSource args) | public int | update(String sql, Object... args) |
SimpleJdbcTemplate | public SimpleJdbcTemplate(DataSource dataSource)(Code) | | Create a new SimpleJdbcTemplate for the given DataSource.
Creates a classic Spring JdbcTemplate and wraps it.
Parameters: dataSource - the JDBC DataSource to access |
SimpleJdbcTemplate | public SimpleJdbcTemplate(JdbcOperations classicJdbcTemplate)(Code) | | Create a new SimpleJdbcTemplate for the given classic Spring JdbcTemplate.
Parameters: classicJdbcTemplate - the classic Spring JdbcTemplate to wrap |
SimpleJdbcTemplate | public SimpleJdbcTemplate(NamedParameterJdbcOperations namedParameterJdbcTemplate)(Code) | | Create a new SimpleJdbcTemplate for the given Spring NamedParameterJdbcTemplate.
Parameters: namedParameterJdbcTemplate - the Spring NamedParameterJdbcTemplate to wrap |
getJdbcOperations | public JdbcOperations getJdbcOperations()(Code) | | Expose the classic Spring JdbcTemplate to allow invocation of
less commonly used methods.
|
getNamedParameterJdbcOperations | public NamedParameterJdbcOperations getNamedParameterJdbcOperations()(Code) | | Expose the Spring NamedParameterJdbcTemplate to allow invocation of
less commonly used methods.
|
|
|