Skip to content

Commit 7ca09d7

Browse files
committed
Polish NamedParameterUtils
- Fixed typos in Javadoc - Formatted Javadoc
1 parent 397d52a commit 7ca09d7

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/NamedParameterUtils.java

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2013 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -32,7 +32,8 @@
3232

3333
/**
3434
* 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.
3637
*
3738
* @author Thomas Risberg
3839
* @author Juergen Hoeller
@@ -229,18 +230,18 @@ private static int skipCommentsAndQuotes(char[] statement, int position) {
229230
}
230231

231232
/**
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
244245
* @param paramSource the source for named parameters
245246
* @return the SQL statement with substituted parameters
246247
* @see #parseSqlStatement

0 commit comments

Comments
 (0)