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 |
parameters()
Gets the collection of query parameters.
|
SqlQuerySpec |
parameters(SqlParameterList parameters)
Sets the collection of query parameters.
|
String |
queryText()
Gets the text of the query.
|
SqlQuerySpec |
queryText(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 queryText()
public SqlQuerySpec queryText(String queryText)
queryText
- the query text.public SqlParameterList parameters()
public SqlQuerySpec parameters(SqlParameterList parameters)
parameters
- the query parameters.Copyright © 2019. All rights reserved.