Package de.businesscode.bcdui.wrs.load
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 Summary
Fields Modifier and Type Field Description static java.lang.String
BCD_WKATTRIBUTE_GROUPING
static java.lang.String
BCD_WKATTRIBUTE_OTHER
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getClientProvidedMaxRows()
getQueryMaxRowsjava.lang.String
getDbSourceName()
getDbSourceNameint
getMaxRows()
getMaxRowsjava.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.EntryThis because neither the BindingSet nor the alias need to be unique really java.util.Set<StandardBindingSet>
getResolvedBindingSets()
java.util.List<WrsBindingItem>
getSelectedBindingItems()
SQLStatementWithParams
getSelectStatement()
boolean
isEmpty()
isEmpty
-
-
-
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.EntryThis 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
-
getSelectStatement
SQLStatementWithParams getSelectStatement()
- Returns:
- the selectStatement
-
isEmpty
boolean isEmpty()
isEmpty- Returns:
- true if no query was specified from the request
-
-