读书人

Spring JDBC: Introduction to JdbcTe

发布时间: 2013-12-22 15:06:55 作者: rapoo

Spring JDBC: Introduction to JdbcTemplate (III)--JdbcTemplate Derivatives

1. JdbcDaoSupport

3. NamedParameterJdbcTemplate

When we execute preparedStatements, we need to use ? as place holder.

But NamedParameterJdbcTemplate offers a mechanism that we can use specific name as holder.

4. SimpleJdbcTemplate --> Depreciated

1> Enables uncertain query parameters with the technology provided since Java 1.5.

? ? ?But this function has been added to JdbcTemplate as well.

2> Enables named placeholder, which is the main function of NamedParameterJdbcTemplate.

3> This class is now depreciated as all its function provided are also provided by other classes.

Example for NamedParameterJdbcTemplate

?

读书人网 >其他数据库

热点推荐