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,
SqlParameterCollection parameters)
Initializes a new instance of the SqlQuerySpec class with the text of the
query and parameters.
|
Modifier and Type | Method and Description |
---|---|
SqlParameterCollection |
getParameters()
Gets the collection of query parameters.
|
String |
getQueryText()
Gets the text of the query.
|
void |
setParameters(SqlParameterCollection parameters)
Sets the collection of query parameters.
|
void |
setQueryText(String queryText)
Sets the text of the query.
|
get, getBoolean, getCollection, getCollection, getDouble, getHashMap, getInt, getLogger, getLong, getMapper, getObject, getObject, getObjectByPath, getString, has, remove, set, toJson, toJson, toObject, toString
public SqlQuerySpec()
public SqlQuerySpec(String queryText)
queryText
- the query text.public SqlQuerySpec(String queryText, SqlParameterCollection parameters)
queryText
- the query text.parameters
- the query parameters.public String getQueryText()
public void setQueryText(String queryText)
queryText
- the query text.public SqlParameterCollection getParameters()
public void setParameters(SqlParameterCollection parameters)
parameters
- the query parameters.Copyright © 2018. All rights reserved.