public final class SqlQuerySpec extends JsonSerializable
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,
SqlParameterList parameters)
Initializes a new instance of the SqlQuerySpec class with the text of the
query and parameters.
|
Modifier and Type | Method and Description |
---|---|
SqlParameterList |
getParameters()
Gets the collection of query parameters.
|
String |
getQueryText()
Gets the text of the query.
|
SqlQuerySpec |
setParameters(SqlParameterList parameters)
Sets the collection of query parameters.
|
SqlQuerySpec |
setQueryText(String queryText)
Sets the text of the query.
|
get, getBoolean, getCollection, getDouble, getInt, getList, getLogger, getLong, getMap, getObject, getObjectByPath, getString, has, toJson, toJson, toObject, toString
public SqlQuerySpec()
public SqlQuerySpec(String queryText)
queryText
- the query text.public SqlQuerySpec(String queryText, SqlParameterList parameters)
queryText
- the query text.parameters
- the query parameters.public String getQueryText()
public SqlQuerySpec setQueryText(String queryText)
queryText
- the query text.public SqlParameterList getParameters()
public SqlQuerySpec setParameters(SqlParameterList parameters)
parameters
- the query parameters.Copyright © 2020 Microsoft Corporation. All rights reserved.