Qorus Integration Engine®
4.0.3.p2_git
|
Qorus oubound mapper based on SqlUtil select. More...
Public Member Methods | |
private | initOptions (reference opts) |
initializes the internal statement object | |
hash | optionKeys () |
returns a list of valid constructor options for this class (can be overridden in subclasses) More... | |
Static Public Member Methods | |
static SqlUtil::AbstractTable | getTable (reference opts) |
called in the constructor to get the Table object | |
static *hash | getSelectHash (reference opts) |
called in the constructor to get the SqlUtil select hash from options | |
Public Attributes | |
const | OptionKeys |
valid mapper keys | |
Qorus oubound mapper based on SqlUtil select.
Options used for QorusSqlStatementOutboundMapper are:
datasource:
(required) the name of the Qorus datasource containing the target tabletable:
(required) the name of the leading table or view for the select hashsh:
(optional) an SqlUtil select hash for the table
. It can use QorusSqlStatementOutboundMapper Variable BindingExample of the mapper definition in the qmapper file:
When QorusSqlStatementOutboundMapper is initialized it can get the bind
runtime option to make sh
parametrized at runtime.
Example of mapper initialization in the workflow step:
Then values provided in runtime options (ropts
), key "bind"
are passed to the mappers's select hash.
You can se use of the so called variable binding in the example above.
string
) says that where condition hash key will be bounded by the value of string
in the binding hash hash OMQ::QorusSqlStatementOutboundMapper::optionKeys | ( | ) |
returns a list of valid constructor options for this class (can be overridden in subclasses)