Package org.hawaiiframework.sql
Interface SqlQueryResolver
-
- All Known Implementing Classes:
AbstractCachingSqlQueryResolver
,ResourceSqlQueryResolver
,SqlQueryResolverComposite
public interface SqlQueryResolver
Interface to be implemented by objects that can resolve sql queries by name.- Since:
- 2.0.0
- Author:
- Marcel Overdijk
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
resolveSqlQuery(String sqlQueryName)
Resolve the given sql query by name.
-
-
-
Method Detail
-
resolveSqlQuery
String resolveSqlQuery(String sqlQueryName) throws HawaiiException
Resolve the given sql query by name.To allow for
SqlQueryResolver
chaining, aViewResolver
should returnnull
if a sql query with the given name is not defined in it.- Parameters:
sqlQueryName
- name of the sql query to resolve- Returns:
- the sql query, or
null
if not found (optional, to allow forSqlQueryResolver
chaining) - Throws:
HawaiiException
- if the sql query could not be resolved (typically in case of problems resolving the sql query)
-
-