com.sap.scheduler.runtime

Class JobParameter

java.lang.Object
  extended by 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

Constructor Summary
JobParameter(JobParameterDefinition def, Boolean value)
           
JobParameter(JobParameterDefinition def, Date value)
           
JobParameter(JobParameterDefinition def, Double value)
           
JobParameter(JobParameterDefinition def, Float value)
           
JobParameter(JobParameterDefinition def, Integer value)
           
JobParameter(JobParameterDefinition def, Long value)
           
JobParameter(JobParameterDefinition def, Object value)
          Constructs a job parameter object from the given value.
JobParameter(JobParameterDefinition def, Properties value)
           
JobParameter(JobParameterDefinition def, String value)
          Constructs a job parameter object from the given string value.
 
Method Summary
 boolean compareJobParameter(JobParameter entry)
          Compares a JobParameter with this.
 Boolean getBooleanValue()
           
 Date getDateValue()
           
 Double getDoubleValue()
           
 Float getFloatValue()
           
 Integer getIntegerValue()
           
 JobParameterDefinition getJobParameterDefinition()
           
 Long getLongValue()
           
 String getName()
           
 Properties getPropertiesValue()
           
 String getStringValue()
           
 Object getValue()
           
 void setBoloeanValue(Boolean value)
           
 void setBooleanValue(boolean value)
           
 void setDateValue(Date dt)
           
 void setDoubleValue(Double value)
           
 void setFloatValue(Float value)
           
 void setIntegerValue(int value)
           
 void setLongValue(long value)
           
 void setLongValue(Long value)
           
 void setPropertiesValue(Properties props)
           
 void setStringValue(String value)
           
 void setValue(Object value)
           
 String toString()
           
 Object valueOf(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 object
value - 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 object
value - 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)
Method Detail

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.
Access Rights

This class can be accessed from:


SC DC
[sap.com] ENGFACADE [sap.com] tc/je/scheduler/api


Copyright 2010 SAP AG Complete Copyright Notice