|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2012 the original author or authors. |
| 2 | + * Copyright 2002-2013 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
32 | 32 |
|
33 | 33 | /**
|
34 | 34 | * Helper methods for named parameter parsing.
|
35 |
| - * Only intended for internal use within Spring's JDBC framework. |
| 35 | + * |
| 36 | + * <p>Only intended for internal use within Spring's JDBC framework. |
36 | 37 | *
|
37 | 38 | * @author Thomas Risberg
|
38 | 39 | * @author Juergen Hoeller
|
@@ -229,18 +230,18 @@ private static int skipCommentsAndQuotes(char[] statement, int position) {
|
229 | 230 | }
|
230 | 231 |
|
231 | 232 | /**
|
232 |
| - * Parse the SQL statement and locate any placeholders or named parameters. |
233 |
| - * Named parameters are substituted for a JDBC placeholder and any select list |
234 |
| - * is expanded to the required number of placeholders. Select lists may contain |
235 |
| - * an array of objects and in that case the placeholders will be grouped and |
236 |
| - * enclosed with parantheses. This allows for the use of "expression lists" in |
237 |
| - * the SQL statement like:<br/> |
238 |
| - * select id, name, state from table where (name, age) in (('John', 35), ('Ann', 50)) |
239 |
| - * <p>The parameter values passed in are used to determine the number of |
240 |
| - * placeholder to be used for a select list. Select lists should be limited |
241 |
| - * to 100 or fewer elements. A larger number of elements is not guaramteed to |
242 |
| - * be supported by the database and is strictly vendor-dependent. |
243 |
| - * @param parsedSql the parsed represenation of the SQL statement |
| 233 | + * Parse the SQL statement and locate any placeholders or named parameters. Named |
| 234 | + * parameters are substituted for a JDBC placeholder, and any select list is expanded |
| 235 | + * to the required number of placeholders. Select lists may contain an array of |
| 236 | + * objects, and in that case the placeholders will be grouped and enclosed with |
| 237 | + * parentheses. This allows for the use of "expression lists" in the SQL statement |
| 238 | + * like: <br /><br /> |
| 239 | + * {@code select id, name, state from table where (name, age) in (('John', 35), ('Ann', 50))} |
| 240 | + * <p>The parameter values passed in are used to determine the number of placeholders to |
| 241 | + * be used for a select list. Select lists should be limited to 100 or fewer elements. |
| 242 | + * A larger number of elements is not guaranteed to be supported by the database and |
| 243 | + * is strictly vendor-dependent. |
| 244 | + * @param parsedSql the parsed representation of the SQL statement |
244 | 245 | * @param paramSource the source for named parameters
|
245 | 246 | * @return the SQL statement with substituted parameters
|
246 | 247 | * @see #parseSqlStatement
|
|
0 commit comments