Qorus Integration Engine®  4.0.3_git
com.qoretechnologies.qorus.test.RemoteDbSelectAction Class Reference

Selects data from a remote DB and compares to expected data. More...

Inheritance diagram for com.qoretechnologies.qorus.test.RemoteDbSelectAction:
com.qoretechnologies.qorus.test.AbstractRemoteDbSelectAction com.qoretechnologies.qorus.test.Action org::qore::jni::QoreObjectWrapper

Public Member Methods

 RemoteDbSelectAction (String remote, String dsname, String tableName, Map< String, Object > sh, Map< String, Object >[] data, Map< String, Object > opts) throws Throwable
 Creates the object according to the arguments. More...
 
 RemoteDbSelectAction (String remote, String dsname, String tableName, Map< String, Object > sh, Map< String, Object >[] data) throws Throwable
 Creates the object according to the arguments. More...
 
Object run (QorusInterfaceTest t) throws Throwable
 runs the test; comparing all rows and then the row count More...
 
void checkRowImpl (QorusInterfaceTest t, Map< String, Object > row) throws Throwable
 compares each row to the expected row values
 
- Public Member Methods inherited from com.qoretechnologies.qorus.test.AbstractRemoteDbSelectAction
 AbstractRemoteDbSelectAction (QoreObject obj) throws Throwable
 creates the object as a wrapper for the given Qore object More...
 
Object run (QorusInterfaceTest t) throws Throwable
 runs the test by streaming the remote data and calling checkRowImpl() for each row More...
 

Additional Inherited Members

- Private Member Methods inherited from com.qoretechnologies.qorus.test.Action
 Action (QoreObject obj)
 protected constructor to create the wrapper object
 

Detailed Description

Selects data from a remote DB and compares to expected data.

Constructor & Destructor Documentation

◆ RemoteDbSelectAction() [1/2]

com.qoretechnologies.qorus.test.RemoteDbSelectAction.RemoteDbSelectAction ( String  remote,
String  dsname,
String  tableName,
Map< String, Object sh,
Map< String, Object > []  data,
Map< String, Object opts 
) throws Throwable
inline

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
datathe expected row data in the remote database; must be a list of hashes
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

◆ RemoteDbSelectAction() [2/2]

com.qoretechnologies.qorus.test.RemoteDbSelectAction.RemoteDbSelectAction ( String  remote,
String  dsname,
String  tableName,
Map< String, Object sh,
Map< String, Object > []  data 
) throws Throwable
inline

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
datathe expected row data in the remote database; must be a list of hashes
Note
data is always streamed in row format

Member Function Documentation

◆ run()

Object com.qoretechnologies.qorus.test.RemoteDbSelectAction.run ( QorusInterfaceTest  t) throws Throwable
inline

runs the test; comparing all rows and then the row count

Parameters
tQorusInterfaceTest test object

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