public class ParameterizedSql extends Object
parameters
are in the same order they are used in the statment.
Thus, the parameter number is inferred based on order.Constructor and Description |
---|
ParameterizedSql(String sql,
SqlParameter... parameters)
Create with the given sql and parameter array.
|
Modifier and Type | Method and Description |
---|---|
SqlParameter[] |
getParameters()
Get the parameter array.
|
String |
getSql()
Get the SQL statement.
|
public ParameterizedSql(String sql, SqlParameter... parameters)
sql
- the SQL statementparameters
- the parameters used to populate that statement once preparedpublic SqlParameter[] getParameters()
public String getSql()
Copyright © 2021. All rights reserved.