Qorus Integration Engine®  4.0.3.p2_git
com.qoretechnologies.qorus.workflow.DynamicDataHelper Class Reference

Java wrapper for the DynamicDataHelper class in Qorus. More...

Inheritance diagram for com.qoretechnologies.qorus.workflow.DynamicDataHelper:
com.qoretechnologies.qorus.workflow.WorkflowDataHelper org::qore::jni::QoreObjectWrapper

Public Member Methods

 DynamicDataHelper (QoreObject obj)
 creates the object as a wrapper for the Qore object
 
 DynamicDataHelper () throws Throwable
 creates the DynamicDataHelper object from the Qore class of the same name
 
void replace (HashMap< String, Object > new_data) throws Throwable
 replaces dynamic data; the data has already been committed to the database when the method returns More...
 
void replace () throws Throwable
 clears dynamic data; the change has already been committed to the database when the method returns More...
 
void update (HashMap< String, Object > new_data) throws Throwable
 adds data to dynamic data; the data has already been committed to the database when the method returns More...
 
void deleteKey (String... keys) throws Throwable
 deletes one or more keys from dynamic data; the changes have already been committed to the database when the method returns More...
 
- Public Member Methods inherited from com.qoretechnologies.qorus.workflow.WorkflowDataHelper
 WorkflowDataHelper (QoreObject obj)
 creates the object as a wrapper for the Qore object
 
HashMap< String, Objectget (String... keys) throws Throwable
 returns the value of multiple keys in the data or the entire data structure depending on the argument More...
 
Object get (String key) throws Throwable
 returns the value of one key in the data or the entire data structure depending on the argument More...
 
HashMap< String, Objectget () throws Throwable
 returns the entire data structure More...
 

Detailed Description

Java wrapper for the DynamicDataHelper class in Qorus.

This class is a helper class that allows workflow dynamic data to be read and updated atomically; the write lock for the data is grabbed in the constructor and released in the destructor

Calls to the following workflow API functions related to workflow dynamic data can be made normally while this object exists and the write lock is held; the functions are aware of and automatically use the write lock held by this object:

The Qore-language destructor is run at the end of the Java step execution, after the step returns to Qorus.

Member Function Documentation

◆ deleteKey()

void com.qoretechnologies.qorus.workflow.DynamicDataHelper.deleteKey ( String...  keys) throws Throwable
inline

deletes one or more keys from dynamic data; the changes have already been committed to the database when the method returns

this method is equivalent to WorkflowApi.deleteDynamicDataKey()

Parameters
keysthe keys to delete
Note
the use of this method causes SQL I/O to be performed in the system schema; to maximize performance, calls to this and other similar methods should be minimized if possible

◆ replace() [1/2]

void com.qoretechnologies.qorus.workflow.DynamicDataHelper.replace ( HashMap< String, Object new_data) throws Throwable
inline

replaces dynamic data; the data has already been committed to the database when the method returns

Note
  • there is currently no function equivalent to this method for workflow dynamic data; this method replaces all the data with new_data
  • the use of this method causes SQL I/O to be performed in the system schema; to maximize performance, calls to this and other similar methods should be minimized if possible

◆ replace() [2/2]

void com.qoretechnologies.qorus.workflow.DynamicDataHelper.replace ( ) throws Throwable
inline

clears dynamic data; the change has already been committed to the database when the method returns

Note
  • there is currently no function equivalent to this method for workflow dynamic data; this method clears all the data
  • the use of this method causes SQL I/O to be performed in the system schema; to maximize performance, calls to this and other similar methods should be minimized if possible

◆ update()

void com.qoretechnologies.qorus.workflow.DynamicDataHelper.update ( HashMap< String, Object new_data) throws Throwable
inline

adds data to dynamic data; the data has already been committed to the database when the method returns

this method is equivalent to WorkflowApi.updateDynamicData()

Note
the use of this method causes SQL I/O to be performed in the system schema; to maximize performance, calls to this and other similar methods should be minimized if possible

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