public class LabVantageUtil
extends java.lang.Object
| Constructor and Description |
|---|
LabVantageUtil() |
| Modifier and Type | Method and Description |
|---|---|
static DataSet |
getSQLDataSet(java.lang.String query,
java.util.Properties context,
java.util.Map<java.lang.String,java.lang.Object> globalmap)
Query the Labvantage system for data.
|
static java.lang.String |
getVariable(java.lang.String name,
java.lang.String defaultValue,
java.util.Properties context,
java.util.Map<java.lang.String,java.lang.Object> globalmap)
Will return a set up variable for either a report or attachment hander.
|
static java.lang.String |
getVariable(java.lang.String name,
java.lang.String defaultValue,
java.util.Properties context,
java.util.Map<java.lang.String,java.lang.Object> globalmap,
boolean ignoreCase)
Will return a set up variable for either a report or attachment hander.
|
static PropertyList |
processAction(java.lang.String actionid,
java.lang.String actionversion,
PropertyList propertyList,
java.util.Properties context,
java.util.Map<java.lang.String,java.lang.Object> globalmap)
Execute an action in LabVantage.
|
static void |
startJob(java.lang.String jobName,
java.util.Properties context,
java.util.Map<java.lang.String,java.lang.Object> globalmap)
Entry point for Jobs which use the LV API.
|
public static void startJob(java.lang.String jobName,
java.util.Properties context,
java.util.Map<java.lang.String,java.lang.Object> globalmap)
jobName - The name of the jobcontext - The talend context objectglobmap - The talend global map objectpublic static java.lang.String getVariable(java.lang.String name,
java.lang.String defaultValue,
java.util.Properties context,
java.util.Map<java.lang.String,java.lang.Object> globalmap)
name - name of the variable with or without the property_ prefixdefaultValue - The default value. If null is provided then an empty string is used.context - The talend context objectglobmap - The talend global map objectpublic static java.lang.String getVariable(java.lang.String name,
java.lang.String defaultValue,
java.util.Properties context,
java.util.Map<java.lang.String,java.lang.Object> globalmap,
boolean ignoreCase)
name - name of the variable with or without the property_ prefixdefaultValue - The default value. If null is provided then an empty string is used.context - The talend context objectglobmap - The talend global map objectignoreCase - Set to true to ignore case when finding the variable namepublic static DataSet getSQLDataSet(java.lang.String query, java.util.Properties context, java.util.Map<java.lang.String,java.lang.Object> globalmap)
query - The query to executecontext - The talend context objectglobmap - The talend global map objectpublic static PropertyList processAction(java.lang.String actionid, java.lang.String actionversion, PropertyList propertyList, java.util.Properties context, java.util.Map<java.lang.String,java.lang.Object> globalmap)
actionid - The id of the actionactionversion - The verson of the actionpropertyList - The input properties for the actioncontext - The talend context objectglobmap - The talend global map object