Qorus Integration Engine®  4.0.3.p1_git
QorusInterfaceTest::AbstractRemoteDbSelectAction Class Referenceabstract

Selects one or more rows from a remote table in a remote Qorus instance. More...

Inheritance diagram for QorusInterfaceTest::AbstractRemoteDbSelectAction:
QorusInterfaceTest::AbstractRemoteDbSqlUtilAction QorusInterfaceTest::Action QorusInterfaceTest::RemoteDbSelectAction

Public Member Methods

 constructor (string remote, string dsname, string tableName, hash< auto > sh, *hash< auto > opts)
 Creates the object according to the arguments. More...
 
 run (QorusInterfaceTest t)
 runs the test by streaming the remote data and calling checkRowImpl() for each row More...
 
abstract checkRowImpl (QorusInterfaceTest t, hash< auto > row)
 called for each row received from the remote end; reimplement this in a subclass and implement assertions here
 
- Public Member Methods inherited from QorusInterfaceTest::AbstractRemoteDbSqlUtilAction
 constructor (string action, string remote, string dsname, *hash< auto > opts)
 Creates the object according to the arguments. More...
 
- Public Member Methods inherited from QorusInterfaceTest::Action
 constructor ()
 creates the object
 

Private Attributes

string m_tableName
 the primary table name for the select call
 
hash< auto > m_sh
 the select hash for the remote select stream
 
int m_rows = 0
 row count
 
- Private Attributes inherited from QorusInterfaceTest::AbstractRemoteDbSqlUtilAction
string m_action
 the sqlutil method or stream name
 
string m_remote
 the remote connection name
 
string m_ds
 the name of the remote datasource
 
*hash< auto > m_opts
 stream options
 

Detailed Description

Selects one or more rows from a remote table in a remote Qorus instance.

Member Function Documentation

◆ constructor()

QorusInterfaceTest::AbstractRemoteDbSelectAction::constructor ( string  remote,
string  dsname,
string  tableName,
hash< auto >  sh,
*hash< auto >  opts 
)

Creates the object according to the arguments.

Parameters
remotethe name of the remote connection
dsnamethe name of the remote datasource
tableNamethe primary table name for the select stream
shthe select hash for the select stream
optsselect stream options; see OMQ::DbRemoteReceive::constructor() for information; note that the "select" stream option is added automaticallty using the sh argument when opening the stream
Note
data is always streamed in row format

◆ run()

QorusInterfaceTest::AbstractRemoteDbSelectAction::run ( QorusInterfaceTest  t)
virtual

runs the test by streaming the remote data and calling checkRowImpl() for each row

Parameters
tQorusInterfaceTest test object

Implements QorusInterfaceTest::Action.

Reimplemented in QorusInterfaceTest::RemoteDbSelectAction.


The documentation for this class was generated from the following file: