public class QueryTemplate extends Object
| Constructor and Description |
|---|
QueryTemplate(QueryTemplate source)
Creates a SQL template from another query template
|
QueryTemplate(String sqlText,
QueryType type,
List<QueryParam> params)
Creates a static SQL query template.
|
QueryTemplate(String sqlText,
QueryType type,
List<QueryParam> params,
boolean dynamic)
Creates a SQL query template.
|
| Modifier and Type | Method and Description |
|---|---|
List<InputQueryParam> |
getInputParams()
Returns the input parameter definitions.
|
List<OutputQueryParam> |
getOutputParams()
Returns the output parameter definitions.
|
List<QueryParam> |
getParams() |
String |
getSqlText()
Returns the SQL sentence for this query.
|
QueryType |
getType()
Returns the type of SQL query.
|
boolean |
isDynamic()
Indicates whether or not the query is dynamic.
|
boolean |
usesNamedParameters()
Indicates whether or not the query uses named parameters.
|
public QueryTemplate(String sqlText, QueryType type, List<QueryParam> params)
sqlText - sql text containing placeholders for each input and output parameter.type - the type of SQL query.params - parameters definitions for the query. Non nullpublic QueryTemplate(String sqlText, QueryType type, List<QueryParam> params, boolean dynamic)
sqlText - sql text containing placeholders for each input and output parameter.type - the type of SQL query.params - parameters definitions for the query. Non nulldynamic - indicates whether or not the query is dynamicpublic QueryTemplate(QueryTemplate source)
source - query template to clonepublic String getSqlText()
public List<InputQueryParam> getInputParams()
public List<OutputQueryParam> getOutputParams()
public List<QueryParam> getParams()
public QueryType getType()
public boolean isDynamic()
public boolean usesNamedParameters()
Copyright © 2022. All rights reserved.