Package de.businesscode.bcdui.wrs.load
Class Wrq2Sql
java.lang.Object
de.businesscode.bcdui.wrs.load.Wrq2Sql
- All Implemented Interfaces:
ISqlGenerator
Takes a Wrq and generates SQL from it
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Bindingsprotected intprotected intprotected final Documentprotected WrqQueryBuilderprotected static StringFields inherited from interface de.businesscode.bcdui.wrs.load.ISqlGenerator
BCD_WKATTRIBUTE_GROUPING, BCD_WKATTRIBUTE_OTHER -
Constructor Summary
ConstructorsConstructorDescriptionWrq2Sql(IRequestOptions options) We are initialized for each wrq:WrqRequest. -
Method Summary
Modifier and TypeMethodDescriptionintgetQueryMaxRowsgetDbSourceNameintgetMaxRowsThis is the binding sets / groups named in the WrqbooleanisEmpty()isEmpty
-
Field Details
-
bindings
-
effectiveMaxRows
protected int effectiveMaxRows -
clientProvidedMaxRows
protected int clientProvidedMaxRows -
wrqQueryBuilder
-
requestDoc
-
wrqTransformGrs2UnionXsltStatic
-
-
Constructor Details
-
Wrq2Sql
We are initialized for each wrq:WrqRequest.- Parameters:
options-- Throws:
Exception
-
-
Method Details
-
getSelectStatement
- Specified by:
getSelectStatementin interfaceISqlGenerator- Returns:
- the selectStatement
-
getDbSourceName
Description copied from interface:ISqlGeneratorgetDbSourceName- Specified by:
getDbSourceNamein interfaceISqlGenerator- Returns:
- the database name configured for this request or null for default
-
getRequestedBindingSetNames
This is the binding sets / groups named in the Wrq- Specified by:
getRequestedBindingSetNamesin interfaceISqlGenerator- Returns:
- See Also:
-
getResolvedBindingSets
- Specified by:
getResolvedBindingSetsin interfaceISqlGenerator- Returns:
- the really selected BindingSets
-
getSelectedBindingItems
- Specified by:
getSelectedBindingItemsin interfaceISqlGenerator- Returns:
- The list of binding items in the select clause in their order.
- Throws:
Exception
-
getMaxRows
public int getMaxRows()Description copied from interface:ISqlGeneratorgetMaxRows- Specified by:
getMaxRowsin interfaceISqlGenerator- Returns:
- the max rows from the request document and server side settings, -1 if no limit
-
getClientProvidedMaxRows
public int getClientProvidedMaxRows()Description copied from interface:ISqlGeneratorgetQueryMaxRows- Specified by:
getClientProvidedMaxRowsin interfaceISqlGenerator- Returns:
- max rows purely driven by the query, ignoring other limits
-
isEmpty
public boolean isEmpty()Description copied from interface:ISqlGeneratorisEmpty- Specified by:
isEmptyin interfaceISqlGenerator- Returns:
- true if no query was specified from the request
-