Class SqlQueryResolverComposite

  • All Implemented Interfaces:
    SqlQueryResolver, org.springframework.core.Ordered

    public class SqlQueryResolverComposite
    extends Object
    implements SqlQueryResolver, org.springframework.core.Ordered
    A SqlQueryResolver that delegates to others.
    Since:
    2.0.0
    Author:
    Marcel Overdijk
    • Constructor Detail

      • SqlQueryResolverComposite

        public SqlQueryResolverComposite()
    • Method Detail

      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface org.springframework.core.Ordered
      • setOrder

        public void setOrder​(int order)
      • resolveSqlQuery

        public String resolveSqlQuery​(String sqlQueryName)
                               throws HawaiiException
        Description copied from interface: SqlQueryResolver
        Resolve the given sql query by name.

        To allow for SqlQueryResolver chaining, a ViewResolver should return null if a sql query with the given name is not defined in it.

        Specified by:
        resolveSqlQuery in interface SqlQueryResolver
        Parameters:
        sqlQueryName - name of the sql query to resolve
        Returns:
        the sql query, or null if not found (optional, to allow for SqlQueryResolver chaining)
        Throws:
        HawaiiException - if the sql query could not be resolved (typically in case of problems resolving the sql query)