Class ActionEvalTableContent
- java.lang.Object
-
- org.apache.hop.workflow.action.ActionBase
-
- org.apache.hop.workflow.actions.evaluatetablecontent.ActionEvalTableContent
-
- All Implemented Interfaces:
Cloneable,IAttributes,ICheckResultSource,IExtensionData,IHasLogChannel,ILoggingObject,IVariables,org.apache.hop.resource.IResourceHolder,org.apache.hop.workflow.action.IAction
@Action(id="EVAL_TABLE_CONTENT", name="i18n::ActionEvalTableContent.Name", description="i18n::ActionEvalTableContent.Description", image="EvalTableContent.svg", categoryDescription="i18n:org.apache.hop.workflow:ActionCategory.Category.Conditions", keywords="i18n::ActionEvalTableContent.keyword", documentationUrl="/workflow/actions/evaluatetablecontent.html") public class ActionEvalTableContent extends org.apache.hop.workflow.action.ActionBase implements Cloneable, org.apache.hop.workflow.action.IActionThis defines a Table content evaluation action
-
-
Field Summary
Fields Modifier and Type Field Description static intSUCCESS_CONDITION_ROWS_COUNT_DIFFERENTstatic intSUCCESS_CONDITION_ROWS_COUNT_EQUALstatic intSUCCESS_CONDITION_ROWS_COUNT_GREATERstatic intSUCCESS_CONDITION_ROWS_COUNT_GREATER_EQUALstatic intSUCCESS_CONDITION_ROWS_COUNT_SMALLERstatic intSUCCESS_CONDITION_ROWS_COUNT_SMALLER_EQUALstatic String[]successConditionsCodestatic String[]successConditionsDesc
-
Constructor Summary
Constructors Constructor Description ActionEvalTableContent()ActionEvalTableContent(String n)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheck(List<ICheckResult> remarks, org.apache.hop.workflow.WorkflowMeta workflowMeta, IVariables variables, IHopMetadataProvider metadataProvider)Objectclone()Resultexecute(Result previousResult, int nr)DatabaseMetagetConnection()StringgetCustomSql()DatabaseMetagetDatabase()StringgetLimit()List<org.apache.hop.resource.ResourceReference>getResourceDependencies(IVariables variables, org.apache.hop.workflow.WorkflowMeta workflowMeta)StringgetSchemaname()intgetSuccessCondition()static intgetSuccessConditionByDesc(String tt)static StringgetSuccessConditionDesc(int i)StringgetTablename()DatabaseMeta[]getUsedDatabaseConnections()StringgetXml()booleanisAddRowsResult()booleanisClearResultList()booleanisEvaluation()booleanisUnconditional()booleanisUseCustomSql()booleanisUseVars()voidloadXml(Node entrynode, IHopMetadataProvider metadataProvider, IVariables variables)voidsetAddRowsResult(boolean addRowsResult)voidsetClearResultList(boolean clearResultList)voidsetConnection(DatabaseMeta connection)voidsetCustomSql(String customSql)voidsetDatabase(DatabaseMeta database)voidsetLimit(String limit)voidsetSchemaname(String schemaname)voidsetSuccessCondition(int successCondition)voidsetTablename(String tableName)voidsetUseCustomSql(boolean useCustomSql)voidsetUseVars(boolean useVars)-
Methods inherited from class org.apache.hop.workflow.action.ActionBase
clear, copyFrom, equals, exportResources, getAttribute, getAttributes, getAttributesMap, getContainerId, getDescription, getDialogClassName, getEntryTransformSetVariable, getEntryTransformSetVariablesMap, getExtensionDataMap, getFilename, getLogChannel, getLogChannelId, getLogLevel, getMetadataProvider, getName, getObjectCopy, getObjectName, getObjectType, getParent, getParentVariables, getParentWorkflow, getParentWorkflowMeta, getPluginId, getRealFilename, getReferencedObjectDescriptions, getRegistrationDate, getSqlStatements, getTypeDesc, getTypeId, getVariable, getVariable, getVariableBoolean, getVariableNames, getVariables, hasChanged, hashCode, initializeFrom, isBasic, isDebug, isDetailed, isForcingSeparateLogging, isGatheringMetrics, isPipeline, isReferencedObjectEnabled, isRowlevel, isStart, isWorkflow, loadReferencedObject, loadXml, logBasic, logBasic, logDebug, logDebug, logDetailed, logDetailed, logError, logError, logError, logMinimal, logMinimal, logRowlevel, logRowlevel, resetErrorsBeforeExecution, resolve, resolve, resolve, setAttribute, setAttributes, setAttributesMap, setChanged, setChanged, setContainerObjectId, setDescription, setEntryTransformSetVariable, setForcingSeparateLogging, setGatheringMetrics, setLogLevel, setMetadataProvider, setName, setParentVariables, setParentWorkflow, setParentWorkflowMeta, setPluginId, setVariable, setVariables, shareWith, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.hop.workflow.action.IAction
clear, exportResources, getDescription, getDialogClassName, getFilename, getLogChannel, getName, getParentWorkflow, getParentWorkflowMeta, getPluginId, getRealFilename, getReferencedObjectDescriptions, getSqlStatements, hasChanged, isPipeline, isReferencedObjectEnabled, isStart, isWorkflow, loadReferencedObject, resetErrorsBeforeExecution, setChanged, setChanged, setDescription, setMetadataProvider, setName, setParentWorkflow, setParentWorkflowMeta, setPluginId
-
Methods inherited from interface org.apache.hop.core.IExtensionData
getExtensionDataMap
-
Methods inherited from interface org.apache.hop.core.variables.IVariables
copyFrom, getParentVariables, getVariable, getVariable, getVariableBoolean, getVariableNames, initializeFrom, resolve, resolve, resolve, setParentVariables, setVariable, setVariables, shareWith
-
-
-
-
Field Detail
-
successConditionsDesc
public static final String[] successConditionsDesc
-
successConditionsCode
public static final String[] successConditionsCode
-
SUCCESS_CONDITION_ROWS_COUNT_EQUAL
public static final int SUCCESS_CONDITION_ROWS_COUNT_EQUAL
- See Also:
- Constant Field Values
-
SUCCESS_CONDITION_ROWS_COUNT_DIFFERENT
public static final int SUCCESS_CONDITION_ROWS_COUNT_DIFFERENT
- See Also:
- Constant Field Values
-
SUCCESS_CONDITION_ROWS_COUNT_SMALLER
public static final int SUCCESS_CONDITION_ROWS_COUNT_SMALLER
- See Also:
- Constant Field Values
-
SUCCESS_CONDITION_ROWS_COUNT_SMALLER_EQUAL
public static final int SUCCESS_CONDITION_ROWS_COUNT_SMALLER_EQUAL
- See Also:
- Constant Field Values
-
SUCCESS_CONDITION_ROWS_COUNT_GREATER
public static final int SUCCESS_CONDITION_ROWS_COUNT_GREATER
- See Also:
- Constant Field Values
-
SUCCESS_CONDITION_ROWS_COUNT_GREATER_EQUAL
public static final int SUCCESS_CONDITION_ROWS_COUNT_GREATER_EQUAL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ActionEvalTableContent
public ActionEvalTableContent(String n)
-
ActionEvalTableContent
public ActionEvalTableContent()
-
-
Method Detail
-
clone
public Object clone()
- Specified by:
clonein interfaceorg.apache.hop.workflow.action.IAction- Overrides:
clonein classorg.apache.hop.workflow.action.ActionBase
-
getSuccessCondition
public int getSuccessCondition()
- Returns:
- the successCondition
-
getSuccessConditionByDesc
public static int getSuccessConditionByDesc(String tt)
-
getXml
public String getXml()
- Specified by:
getXmlin interfaceorg.apache.hop.workflow.action.IAction- Overrides:
getXmlin classorg.apache.hop.workflow.action.ActionBase
-
getSuccessConditionDesc
public static String getSuccessConditionDesc(int i)
-
loadXml
public void loadXml(Node entrynode, IHopMetadataProvider metadataProvider, IVariables variables) throws HopXmlException
- Specified by:
loadXmlin interfaceorg.apache.hop.workflow.action.IAction- Overrides:
loadXmlin classorg.apache.hop.workflow.action.ActionBase- Throws:
HopXmlException
-
setDatabase
public void setDatabase(DatabaseMeta database)
-
getDatabase
public DatabaseMeta getDatabase()
-
isEvaluation
public boolean isEvaluation()
- Specified by:
isEvaluationin interfaceorg.apache.hop.workflow.action.IAction- Overrides:
isEvaluationin classorg.apache.hop.workflow.action.ActionBase
-
isUnconditional
public boolean isUnconditional()
- Specified by:
isUnconditionalin interfaceorg.apache.hop.workflow.action.IAction- Overrides:
isUnconditionalin classorg.apache.hop.workflow.action.ActionBase
-
execute
public Result execute(Result previousResult, int nr)
- Specified by:
executein interfaceorg.apache.hop.workflow.action.IAction
-
getUsedDatabaseConnections
public DatabaseMeta[] getUsedDatabaseConnections()
- Overrides:
getUsedDatabaseConnectionsin classorg.apache.hop.workflow.action.ActionBase
-
getResourceDependencies
public List<org.apache.hop.resource.ResourceReference> getResourceDependencies(IVariables variables, org.apache.hop.workflow.WorkflowMeta workflowMeta)
- Specified by:
getResourceDependenciesin interfaceorg.apache.hop.workflow.action.IAction- Overrides:
getResourceDependenciesin classorg.apache.hop.workflow.action.ActionBase
-
check
public void check(List<ICheckResult> remarks, org.apache.hop.workflow.WorkflowMeta workflowMeta, IVariables variables, IHopMetadataProvider metadataProvider)
- Specified by:
checkin interfaceorg.apache.hop.workflow.action.IAction- Overrides:
checkin classorg.apache.hop.workflow.action.ActionBase
-
isAddRowsResult
public boolean isAddRowsResult()
-
setAddRowsResult
public void setAddRowsResult(boolean addRowsResult)
-
isClearResultList
public boolean isClearResultList()
-
setClearResultList
public void setClearResultList(boolean clearResultList)
-
isUseVars
public boolean isUseVars()
-
setUseVars
public void setUseVars(boolean useVars)
-
isUseCustomSql
public boolean isUseCustomSql()
-
setUseCustomSql
public void setUseCustomSql(boolean useCustomSql)
-
getCustomSql
public String getCustomSql()
-
setCustomSql
public void setCustomSql(String customSql)
-
getConnection
public DatabaseMeta getConnection()
-
setConnection
public void setConnection(DatabaseMeta connection)
-
getTablename
public String getTablename()
-
setTablename
public void setTablename(String tableName)
-
getSchemaname
public String getSchemaname()
-
setSchemaname
public void setSchemaname(String schemaname)
-
getLimit
public String getLimit()
-
setLimit
public void setLimit(String limit)
-
setSuccessCondition
public void setSuccessCondition(int successCondition)
-
-