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 -
Method Summary
Modifier and TypeMethodDescriptionint
getQueryMaxRowsgetDbSourceNameint
getMaxRowsgetRequestedBindingSetNames 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 reallyboolean
isEmpty()
isEmpty
-
Field Details
-
BCD_WKATTRIBUTE_GROUPING
- See Also:
-
BCD_WKATTRIBUTE_OTHER
- See Also:
-
-
Method Details
-
getDbSourceName
String getDbSourceName()getDbSourceName- Returns:
- the database name configured for this request or null for default
-
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
- 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
-