public class SqlQueryResolverComposite extends java.lang.Object implements SqlQueryResolver, org.springframework.core.Ordered
SqlQueryResolver
that delegates to others.Constructor and Description |
---|
SqlQueryResolverComposite() |
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
java.util.List<SqlQueryResolver> |
getSqlQueryResolvers()
Return the list of
SqlQueryResolver s to delegate to. |
java.lang.String |
resolveSqlQuery(java.lang.String sqlQueryName)
Resolve the given sql query by name.
|
void |
setOrder(int order) |
void |
setSqlQueryResolvers(java.util.List<SqlQueryResolver> sqlQueryResolvers)
Set the list of
SqlQueryResolver s to delegate to. |
public java.util.List<SqlQueryResolver> getSqlQueryResolvers()
SqlQueryResolver
s to delegate to.public void setSqlQueryResolvers(java.util.List<SqlQueryResolver> sqlQueryResolvers)
SqlQueryResolver
s to delegate to.public int getOrder()
getOrder
in interface org.springframework.core.Ordered
public void setOrder(int order)
public java.lang.String resolveSqlQuery(java.lang.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)