public class SqlActionPack extends Object implements com.cultofbits.integrationm.service.actionpack.classic.ActionPack
com.cultofbits.integrationm.service.properties file
with the sql key.
for example:
action.names=sample-sql action.sample-sql=sql action.sample-sql.sql.driverClassName=<jdbc_driver_classname> action.sample-sql.sql.url=<jdbc_url> action.sample-sql.sql.username=<db_username> action.sample-sql.sql.password=<db_password>
| Constructor and Description |
|---|
SqlActionPack(String driverClassName,
String url,
String username,
String password) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(String operation,
String entityType,
String condition,
Map<String,String> keyValues)
This runs a given operation af the actionPack
|
boolean |
apply(String operation,
String entityType,
String condition,
Map<String,String> keyValues,
String runAsUser)
Same as the the standard apply method but with an additional arg that allows to run the operation as a given user
|
boolean |
equals(Object o) |
String |
toString() |
public boolean apply(String operation, String entityType, String condition, Map<String,String> keyValues)
ActionPackapply in interface com.cultofbits.integrationm.service.actionpack.classic.ActionPackoperation - the name of the operation to executeentityType - the entity on which the operation is to be executedcondition - an optional condition or filter to be used on the operationkeyValues - a map of optional parameters to be passed in for the operationpublic boolean apply(String operation, String entityType, String condition, Map<String,String> keyValues, String runAsUser)
ActionPackapply in interface com.cultofbits.integrationm.service.actionpack.classic.ActionPackrunAsUser - the username that will be used to run the operation (a "cobtoken" will be generated for him)Copyright © 2021 Cult Of Bits, lda