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 Detail

      • BCD_WKATTRIBUTE_GROUPING

        static final java.lang.String BCD_WKATTRIBUTE_GROUPING
        See Also:
        Constant Field Values
      • BCD_WKATTRIBUTE_OTHER

        static final java.lang.String BCD_WKATTRIBUTE_OTHER
        See Also:
        Constant Field Values
    • Method Detail

      • getDbSourceName

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

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

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

        java.util.List<WrsBindingItem> getSelectedBindingItems()
                                                        throws java.lang.Exception
        Returns:
        The list of binding items in the select clause in their order.
        Throws:
        java.lang.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
      • isEmpty

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