T - the generic type of the implementing typepublic abstract class StatementDefinition<T extends StatementDefinition> extends QuerySettings
| Modifier and Type | Field and Description |
|---|---|
protected String |
sql
The text of the SQL query to be executed
|
| Constructor and Description |
|---|
StatementDefinition() |
| Modifier and Type | Method and Description |
|---|---|
protected T |
copy()
Returns a shallow copy of
this instance. |
Optional<ParameterType> |
getParameterType(String paramName)
Returns the type for a given parameter
|
List<ParameterType> |
getParameterTypes() |
String |
getSql() |
abstract T |
getTemplate()
Returns a globally defined definition this instance points to.
|
T |
resolveFromTemplate()
Returns an instance of the same class which state has been derived from the state of the
getTemplate() and the state
of this instance. |
void |
setSql(String sql) |
copyInto, getFetchSize, getMaxRows, getQueryTimeout, getQueryTimeoutUnit@Parameter @Optional @Text @DisplayName(value="SQL Query Text") @Placement(order=1) @MetadataKeyId protected String sql
public abstract T getTemplate()
null.nullpublic T resolveFromTemplate()
getTemplate() and the state
of this instance.
If getTemplate() is null then this instance is returned.
This method is recursive in the sense that the template can point to another template itself.
protected T copy()
this instance.public Optional<ParameterType> getParameterType(String paramName)
paramName - the parameter's nameParameterTypepublic List<ParameterType> getParameterTypes()
public String getSql()
public void setSql(String sql)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.