Permalink
Browse files

Added explicit note on thread safety to JdbcTemplate variants

Issue: SPR-11478
  • Loading branch information...
jhoeller committed Feb 28, 2014
1 parent c553d68 commit 473061ec1ebe7404fe8221cb8652b07a0f12dc66
@@ -81,6 +81,8 @@
* <p>All SQL operations performed by this class are logged at debug level,
* using "org.springframework.jdbc.core.JdbcTemplate" as log category.
*
+ * <p><b>NOTE: An instance of this class is thread-safe once configured.</b>
+ *
* @author Rod Johnson
* @author Juergen Hoeller
* @author Thomas Risberg
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2013 the original author or authors.
+ * Copyright 2002-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -52,6 +52,8 @@
* exposed to allow for convenient access to the traditional
* {@link org.springframework.jdbc.core.JdbcTemplate} methods.
*
+ * <p><b>NOTE: An instance of this class is thread-safe once configured.</b>
+ *
* @author Thomas Risberg
* @author Juergen Hoeller
* @since 2.0
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2012 the original author or authors.
+ * Copyright 2002-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -18,13 +18,12 @@
import java.util.List;
import java.util.Map;
-
import javax.sql.DataSource;
import org.springframework.dao.DataAccessException;
+import org.springframework.jdbc.core.BatchUpdateUtils;
import org.springframework.jdbc.core.JdbcOperations;
import org.springframework.jdbc.core.RowMapper;
-import org.springframework.jdbc.core.BatchUpdateUtils;
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcOperations;
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
import org.springframework.jdbc.core.namedparam.SqlParameterSource;
@@ -42,6 +41,8 @@
* such as RowCallbackHandler, updates with PreparedStatementSetters rather than
* argument arrays, and stored procedures as well as batch operations.
*
+ * <p><b>NOTE: An instance of this class is thread-safe once configured.</b>
+ *
* @author Rod Johnson
* @author Rob Harrop
* @author Juergen Hoeller

0 comments on commit 473061e

Please sign in to comment.