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 Bindings
protected int
protected int
protected final Document
protected WrqQueryBuilder
protected static String
Fields 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 TypeMethodDescriptionint
getQueryMaxRowsgetDbSourceNameint
getMaxRowsThis is the binding sets / groups named in the Wrqboolean
isEmpty()
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:
getSelectStatement
in interfaceISqlGenerator
- Returns:
- the selectStatement
-
getDbSourceName
Description copied from interface:ISqlGenerator
getDbSourceName- Specified by:
getDbSourceName
in 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:
getRequestedBindingSetNames
in interfaceISqlGenerator
- Returns:
- See Also:
-
getResolvedBindingSets
- Specified by:
getResolvedBindingSets
in interfaceISqlGenerator
- Returns:
- the really selected BindingSets
-
getSelectedBindingItems
- Specified by:
getSelectedBindingItems
in interfaceISqlGenerator
- Returns:
- The list of binding items in the select clause in their order.
- Throws:
Exception
-
getMaxRows
public int getMaxRows()Description copied from interface:ISqlGenerator
getMaxRows- Specified by:
getMaxRows
in 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:ISqlGenerator
getQueryMaxRows- Specified by:
getClientProvidedMaxRows
in interfaceISqlGenerator
- Returns:
- max rows purely driven by the query, ignoring other limits
-
isEmpty
public boolean isEmpty()Description copied from interface:ISqlGenerator
isEmpty- Specified by:
isEmpty
in interfaceISqlGenerator
- Returns:
- true if no query was specified from the request
-