public class SqlQueryResolverComposite extends Object implements SqlQueryResolver, Ordered
SqlQueryResolver
that delegates to others.HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
SqlQueryResolverComposite() |
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
List<SqlQueryResolver> |
getSqlQueryResolvers()
Return the list of
SqlQueryResolver s to delegate to. |
String |
resolveSqlQuery(String sqlQueryName)
Resolve the given sql query by name.
|
void |
setOrder(int order) |
void |
setSqlQueryResolvers(List<SqlQueryResolver> sqlQueryResolvers)
Set the list of
SqlQueryResolver s to delegate to. |
public List<SqlQueryResolver> getSqlQueryResolvers()
SqlQueryResolver
s to delegate to.public void setSqlQueryResolvers(List<SqlQueryResolver> sqlQueryResolvers)
SqlQueryResolver
s to delegate to.public void setOrder(int order)
public String resolveSqlQuery(String sqlQueryName) throws HawaiiException
SqlQueryResolver
To allow for SqlQueryResolver
chaining, a ViewResolver
should return
null
if a sql query with the given name is not defined in it.
resolveSqlQuery
in interface SqlQueryResolver
sqlQueryName
- name of the sql query to resolvenull
if not found (optional, to allow for SqlQueryResolver
chaining)HawaiiException
- if the sql query could not be resolved (typically in case of problems
resolving the sql query)