Qorus Integration Engine® Enterprise Edition 6.0.27_prod
|
Qorus oubound mapper based on SqlUtil select. More...
Public Member Methods | |
constructor (hash< auto > mapv, *hash< auto > opts) | |
constructs a mapper object More... | |
hash< auto > | 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< *hash< auto > > opts) |
called in the constructor to get the Table object | |
static *hash< auto > | getSelectHash (reference< *hash< auto > > opts) |
called in the constructor to get the SqlUtil select hash from options | |
Public Attributes | |
const | OptionKeys |
valid mapper keys | |
const | UserOptions |
valid user options | |
Private Member Methods | |
initOptions (reference< *hash< auto > > opts) | |
initializes the internal statement object | |
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 bound by the value of string
in the binding hash OMQ::QorusSqlStatementOutboundMapper::constructor | ( | hash< auto > | mapv, |
*hash< auto > | opts | ||
) |
constructs a mapper object
mapv | a mapping hash |
opts | a option hash |
hash< auto > OMQ::QorusSqlStatementOutboundMapper::optionKeys | ( | ) |
returns a list of valid constructor options for this class (can be overridden in subclasses)