Interface ISqlGenerator

All Known Implementing Classes:
AbstractSqlGenerator, MultiLevelSuggest, Wrq2Sql

public interface ISqlGenerator
The generator parses the request document, builds select statement and extracts other information from the input-options
  • Field Details

  • Method Details

    • getDbSourceName

      String getDbSourceName()
      getDbSourceName
      Returns:
      the database name configured for this request or null for default
    • getRequestedBindingSetNames

      Set<Map.Entry<String,String>> getRequestedBindingSetNames()
      getRequestedBindingSetNames the requested bindingSet or bindingGroup names from the request document in the form Map.Entry<BsName,bsAlias> This because neither the BindingSet nor the alias need to be unique really
      Returns:
    • getResolvedBindingSets

      Set<StandardBindingSet> getResolvedBindingSets()
      Returns:
      the really selected BindingSets
    • getSelectedBindingItems

      List<WrsBindingItem> getSelectedBindingItems() throws Exception
      Returns:
      The list of binding items in the select clause in their order.
      Throws:
      Exception
    • getMaxRows

      int getMaxRows()
      getMaxRows
      Returns:
      the max rows from the request document and server side settings, -1 if no limit
    • getClientProvidedMaxRows

      int getClientProvidedMaxRows()
      getQueryMaxRows
      Returns:
      max rows purely driven by the query, ignoring other limits
    • getSelectStatement

      SQLStatementWithParams getSelectStatement()
      Returns:
      the selectStatement
    • isEmpty

      boolean isEmpty()
      isEmpty
      Returns:
      true if no query was specified from the request