|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.module.db.internal.domain.query.QueryTemplate
public class QueryTemplate
Defines a SQL query that could be executed against a database connection.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 null
public 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 clone| Method Detail |
|---|
public String getSqlText()
public List<InputQueryParam> getInputParams()
public List<OutputQueryParam> getOutputParams()
public List<QueryParam> getParams()
public QueryType getType()
public boolean isDynamic()
public boolean usesNamedParameters()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||