com.sap.scheduler.runtime
Class JobParameter
java.lang.Object
com.sap.scheduler.runtime.JobParameter
- All Implemented Interfaces:
- Serializable
public class JobParameter
- extends Object
- implements Serializable
This interface represents a concrete job parameter. It also contains
a reference to the JobParameterDefinition object in order to describe
the type of this parameter.
- See Also:
- Serialized Form
JobParameter
public JobParameter(JobParameterDefinition def,
Object value)
throws IllegalArgumentException
- Constructs a job parameter object from the given value. An
IllegalArgumentException is thrown if the type does not match
the type specified in the JobParameterDefinition object.
- Parameters:
def - the JobParameterDefinition objectvalue - the value
- Throws:
IllegalArgumentException - if the type of the value does not match
the type specified in the JobParameterDefinition object
JobParameter
public JobParameter(JobParameterDefinition def,
String value)
throws IllegalArgumentException
- Constructs a job parameter object from the given string value. If the
expected value type is not String it is created from the String.
- Parameters:
def - the JobParameterDefinition objectvalue - the string value
- Throws:
IllegalArgumentException - if the provided type does not match
the type of the JobParameterDefinition
JobParameter
public JobParameter(JobParameterDefinition def,
Long value)
JobParameter
public JobParameter(JobParameterDefinition def,
Integer value)
JobParameter
public JobParameter(JobParameterDefinition def,
Boolean value)
JobParameter
public JobParameter(JobParameterDefinition def,
Double value)
JobParameter
public JobParameter(JobParameterDefinition def,
Float value)
JobParameter
public JobParameter(JobParameterDefinition def,
Properties value)
JobParameter
public JobParameter(JobParameterDefinition def,
Date value)
getJobParameterDefinition
public JobParameterDefinition getJobParameterDefinition()
getName
public String getName()
getStringValue
public String getStringValue()
setStringValue
public void setStringValue(String value)
getFloatValue
public Float getFloatValue()
setFloatValue
public void setFloatValue(Float value)
getDoubleValue
public Double getDoubleValue()
setDoubleValue
public void setDoubleValue(Double value)
getDateValue
public Date getDateValue()
setDateValue
public void setDateValue(Date dt)
getLongValue
public Long getLongValue()
getBooleanValue
public Boolean getBooleanValue()
getIntegerValue
public Integer getIntegerValue()
setIntegerValue
public void setIntegerValue(int value)
setLongValue
public void setLongValue(Long value)
setLongValue
public void setLongValue(long value)
setBoloeanValue
public void setBoloeanValue(Boolean value)
setBooleanValue
public void setBooleanValue(boolean value)
setPropertiesValue
public void setPropertiesValue(Properties props)
getPropertiesValue
public Properties getPropertiesValue()
setValue
public void setValue(Object value)
getValue
public Object getValue()
toString
public String toString()
- Overrides:
toString in class Object
valueOf
public Object valueOf(String value)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
compareJobParameter
public boolean compareJobParameter(JobParameter entry)
- Compares a JobParameter with this.
- Parameters:
entry - the JobParameter to compare
- Returns:
- true if the JobParameter are equals in case of its members otherwise false.
This class can be accessed from:
|
SC
|
DC
|
[sap.com] ENGFACADE
|
[sap.com] tc/je/scheduler/api
|
Copyright 2010 SAP AG Complete Copyright Notice