public final class SqlQuerySpec extends Object
Constructor and Description |
---|
SqlQuerySpec()
Initializes a new instance of the SqlQuerySpec class.
|
SqlQuerySpec(String queryText)
Initializes a new instance of the SqlQuerySpec class with the text of the
query.
|
SqlQuerySpec(String queryText,
List<SqlParameter> parameters)
Initializes a new instance of the SqlQuerySpec class with the text of the
query and parameters.
|
SqlQuerySpec(String queryText,
SqlParameter... parameters)
Initializes a new instance of the SqlQuerySpec class with the text of the
query and parameters.
|
Modifier and Type | Method and Description |
---|---|
List<SqlParameter> |
getParameters()
Gets the container of query parameters.
|
String |
getQueryText()
Gets the text of the query.
|
SqlQuerySpec |
setParameters(List<SqlParameter> parameters)
Sets the container of query parameters.
|
SqlQuerySpec |
setQueryText(String queryText)
Sets the text of the query.
|
public SqlQuerySpec()
public SqlQuerySpec(String queryText)
queryText
- the query text.public SqlQuerySpec(String queryText, List<SqlParameter> parameters)
queryText
- the query text.parameters
- the query parameters.public SqlQuerySpec(String queryText, SqlParameter... parameters)
queryText
- the query text.parameters
- the query parameters.public String getQueryText()
public SqlQuerySpec setQueryText(String queryText)
queryText
- the query text.public List<SqlParameter> getParameters()
public SqlQuerySpec setParameters(List<SqlParameter> parameters)
parameters
- the query parameters.Copyright © 2021 Microsoft Corporation. All rights reserved.