|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.di.job.entry.JobEntryBase org.pentaho.di.job.entries.simpleeval.JobEntrySimpleEval
public class JobEntrySimpleEval
This defines a 'simple evaluation' job entry.
Constructor Summary | |
---|---|
JobEntrySimpleEval()
|
|
JobEntrySimpleEval(String n)
|
Method Summary | |
---|---|
Object |
clone()
This method is called when a job entry is duplicated in Spoon. |
boolean |
evaluates()
This method must return true if the job entry supports the true/false outgoing hops. |
Result |
execute(Result previousResult,
int nr)
Execute the job entry. |
String |
getCompareValue()
|
String |
getFieldName()
|
static int |
getFieldTypeByDesc(String tt)
|
static String |
getFieldTypeDesc(int i)
|
String |
getMask()
|
String |
getMaxValue()
|
String |
getMinValue()
|
static int |
getSuccessBooleanConditionByDesc(String tt)
|
static String |
getSuccessBooleanConditionDesc(int i)
|
static int |
getSuccessConditionByDesc(String tt)
|
static String |
getSuccessConditionDesc(int i)
|
static int |
getSuccessNumberConditionByCode(String tt)
|
static int |
getSuccessNumberConditionByDesc(String tt)
|
static String |
getSuccessNumberConditionCode(int i)
|
static String |
getSuccessNumberConditionDesc(int i)
|
static int |
getValueTypeByDesc(String tt)
|
static String |
getValueTypeDesc(int i)
|
String |
getVariableName()
|
String |
getXML()
This method is called by PDI whenever a job entry needs to serialize its settings to XML. |
boolean |
isSuccessWhenVarSet()
|
void |
loadRep(Repository rep,
ObjectId id_jobentry,
List<DatabaseMeta> databases,
List<SlaveServer> slaveServers)
This method is called by PDI whenever a job entry needs to read its configuration from a PDI repository. |
void |
loadXML(Node entrynode,
List<DatabaseMeta> databases,
List<SlaveServer> slaveServers,
Repository rep)
This method is called by PDI whenever a job entry needs to read its settings from XML. |
void |
saveRep(Repository rep,
ObjectId id_job)
This method is called by PDI whenever a job entry needs to save its settings to a PDI repository. |
void |
setCompareValue(String comparevalue)
|
void |
setFieldName(String fieldname)
|
void |
setMask(String mask)
|
void |
setMaxValue(String maxvalue)
|
void |
setMinValue(String minvalue)
|
void |
setSuccessWhenVarSet(boolean successwhenvarset)
|
void |
setVariableName(String variablename)
|
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.pentaho.di.job.entry.JobEntryInterface |
---|
check, clear, exportResources, getDescription, getDialogClassName, getFilename, getLogChannel, getName, getObjectId, getParentJob, getPluginId, getRealFilename, getResourceDependencies, getSQLStatements, getSQLStatements, getTypeId, getUsedDatabaseConnections, hasChanged, hasRepositoryReferences, isDummy, isEvaluation, isJob, isMail, isShell, isSpecial, isStart, isTransformation, isUnconditional, lookupRepositoryReferences, resetErrorsBeforeExecution, setChanged, setChanged, setDescription, setName, setObjectId, setParentJob, setPluginId, setRepository |
Field Detail |
---|
public static final String[] valueTypeDesc
public static final String[] valueTypeCode
public static final int VALUE_TYPE_FIELD
public static final int VALUE_TYPE_VARIABLE
public int valuetype
public static final String[] successConditionDesc
public static final String[] successConditionCode
public static final int SUCCESS_CONDITION_EQUAL
public static final int SUCCESS_CONDITION_DIFFERENT
public static final int SUCCESS_CONDITION_CONTAINS
public static final int SUCCESS_CONDITION_NOT_CONTAINS
public static final int SUCCESS_CONDITION_START_WITH
public static final int SUCCESS_CONDITION_NOT_START_WITH
public static final int SUCCESS_CONDITION_END_WITH
public static final int SUCCESS_CONDITION_NOT_END_WITH
public static final int SUCCESS_CONDITION_REGEX
public static final int SUCCESS_CONDITION_IN_LIST
public static final int SUCCESS_CONDITION_NOT_IN_LIST
public int successcondition
public static final String[] fieldTypeDesc
public static final String[] fieldTypeCode
public static final int FIELD_TYPE_STRING
public static final int FIELD_TYPE_NUMBER
public static final int FIELD_TYPE_DATE_TIME
public static final int FIELD_TYPE_BOOLEAN
public int fieldtype
public static final String[] successNumberConditionDesc
public static final String[] successNumberConditionCode
public static final int SUCCESS_NUMBER_CONDITION_EQUAL
public static final int SUCCESS_NUMBER_CONDITION_DIFFERENT
public static final int SUCCESS_NUMBER_CONDITION_SMALLER
public static final int SUCCESS_NUMBER_CONDITION_SMALLER_EQUAL
public static final int SUCCESS_NUMBER_CONDITION_GREATER
public static final int SUCCESS_NUMBER_CONDITION_GREATER_EQUAL
public static final int SUCCESS_NUMBER_CONDITION_BETWEEN
public static final int SUCCESS_NUMBER_CONDITION_IN_LIST
public static final int SUCCESS_NUMBER_CONDITION_NOT_IN_LIST
public int successnumbercondition
public static final String[] successBooleanConditionDesc
public static final String[] successBooleanConditionCode
public static final int SUCCESS_BOOLEAN_CONDITION_TRUE
public static final int SUCCESS_BOOLEAN_CONDITION_FALSE
public int successbooleancondition
Constructor Detail |
---|
public JobEntrySimpleEval(String n)
public JobEntrySimpleEval()
Method Detail |
---|
public Object clone()
JobEntryBase
clone
in interface JobEntryInterface
clone
in class JobEntryBase
public static String getSuccessNumberConditionCode(int i)
public String getXML()
JobEntryBase
getXML
in interface JobEntryInterface
getXML
in class JobEntryBase
public void setSuccessWhenVarSet(boolean successwhenvarset)
public boolean isSuccessWhenVarSet()
public static int getSuccessNumberConditionByCode(String tt)
public void loadXML(Node entrynode, List<DatabaseMeta> databases, List<SlaveServer> slaveServers, Repository rep) throws KettleXMLException
JobEntryInterface
loadXML
in interface JobEntryInterface
entrynode
- the top-level XML nodedatabases
- the list of databasesslaveServers
- the list of slave serversrep
- the repository object
KettleXMLException
- if any errors occur during the loading of the XMLpublic void loadRep(Repository rep, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException
JobEntryBase
loadRep
in interface JobEntryInterface
loadRep
in class JobEntryBase
rep
- the repository objectid_jobentry
- the id of the job entrydatabases
- the list of databasesslaveServers
- the list of slave servers
KettleException
- if any errors occur during the loadpublic void saveRep(Repository rep, ObjectId id_job) throws KettleException
JobEntryBase
saveRep
in interface JobEntryInterface
saveRep
in class JobEntryBase
rep
- the repository objectid_job
- the id_job
KettleException
- if any errors occur during the savepublic Result execute(Result previousResult, int nr) throws KettleException
JobEntryInterface
execute
in interface JobEntryInterface
previousResult
- the previous resultnr
- the number of rows
KettleException
- if any Kettle exceptions occurpublic static String getValueTypeDesc(int i)
public static String getFieldTypeDesc(int i)
public static String getSuccessConditionDesc(int i)
public static String getSuccessNumberConditionDesc(int i)
public static String getSuccessBooleanConditionDesc(int i)
public static int getValueTypeByDesc(String tt)
public static int getFieldTypeByDesc(String tt)
public static int getSuccessConditionByDesc(String tt)
public static int getSuccessNumberConditionByDesc(String tt)
public static int getSuccessBooleanConditionByDesc(String tt)
public void setMinValue(String minvalue)
public String getMinValue()
public void setCompareValue(String comparevalue)
public String getMask()
public void setMask(String mask)
public String getFieldName()
public void setFieldName(String fieldname)
public String getVariableName()
public void setVariableName(String variablename)
public String getCompareValue()
public void setMaxValue(String maxvalue)
public String getMaxValue()
public boolean evaluates()
JobEntryBase
evaluates
in interface JobEntryInterface
evaluates
in class JobEntryBase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |