|
|
|
|
@ -273,9 +273,10 @@ public abstract class NamedParameterUtils {
@@ -273,9 +273,10 @@ public abstract class NamedParameterUtils {
|
|
|
|
|
* parentheses. This allows for the use of "expression lists" in the SQL statement |
|
|
|
|
* like: <br /><br /> |
|
|
|
|
* {@code select id, name, state from table where (name, age) in (('John', 35), ('Ann', 50))} |
|
|
|
|
* <p>The parameter values passed in are used to determine the number of placeholders to |
|
|
|
|
* be used for a select list. Select lists should be limited to 100 or fewer elements and not be empty, |
|
|
|
|
* A larger number of or empty elements is not guaranteed to be supported by the database and |
|
|
|
|
* <p>The parameter values passed in are used to determine the number of |
|
|
|
|
* placeholders to be used for a select list. Select lists should not be empty |
|
|
|
|
* and should be limited to 100 or fewer elements. An empty list or a larger |
|
|
|
|
* number of elements is not guaranteed to be supported by the database and |
|
|
|
|
* is strictly vendor-dependent. |
|
|
|
|
* @param parsedSql the parsed representation of the SQL statement |
|
|
|
|
* @param paramSource the source for named parameters |
|
|
|
|
@ -460,7 +461,7 @@ public abstract class NamedParameterUtils {
@@ -460,7 +461,7 @@ public abstract class NamedParameterUtils {
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Parse the SQL statement and locate any placeholders or named parameters. |
|
|
|
|
* Named parameters are substituted for a JDBC placeholder. |
|
|
|
|
* <p>Named parameters are substituted for a JDBC placeholder. |
|
|
|
|
* <p>This is a shortcut version of |
|
|
|
|
* {@link #parseSqlStatement(String)} in combination with |
|
|
|
|
* {@link #substituteNamedParameters(ParsedSql, SqlParameterSource)}. |
|
|
|
|
@ -474,9 +475,10 @@ public abstract class NamedParameterUtils {
@@ -474,9 +475,10 @@ public abstract class NamedParameterUtils {
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Parse the SQL statement and locate any placeholders or named parameters. |
|
|
|
|
* Named parameters are substituted for a JDBC placeholder and any select list |
|
|
|
|
* is expanded to the required number of placeholders. |
|
|
|
|
* <p>Named parameters are substituted for a JDBC placeholder, and any select |
|
|
|
|
* list is expanded to the required number of placeholders. |
|
|
|
|
* <p>This is a shortcut version of |
|
|
|
|
* {@link #parseSqlStatement(String)} in combination with |
|
|
|
|
* {@link #substituteNamedParameters(ParsedSql, SqlParameterSource)}. |
|
|
|
|
* @param sql the SQL statement |
|
|
|
|
* @param paramSource the source for named parameters |
|
|
|
|
|