Package groovy.sql
Class SqlWithParams
java.lang.Object
groovy.sql.SqlWithParams
Holds an SQL string together with the positional parameters that should be
bound to it.
-
Constructor Summary
ConstructorsConstructorDescriptionSqlWithParams(String sql, List<?> params) Creates an SQL-and-parameters pair. -
Method Summary
-
Constructor Details
-
SqlWithParams
Creates an SQL-and-parameters pair.- Parameters:
sql- the SQL textparams- the corresponding positional parameters
-
-
Method Details
-
getSql
Returns the SQL text.- Returns:
- the SQL text
-
getParams
Returns the positional parameters.- Returns:
- the positional parameters
-