Package org.springframework.batch.core
Class JobParameter<T>
java.lang.Object
org.springframework.batch.core.JobParameter<T>
- All Implemented Interfaces:
Serializable
Domain representation of a parameter to a batch job. The identifying flag is used to
indicate if the parameter is to be used as part of the identification of a job
instance.
- Since:
- 2.0
- Author:
- Lucas Ward, Dave Syer, Michael Minella, Mahmoud Ben Hassine, Song JaeGeun
- See Also:
-
Constructor Summary
ConstructorDescriptionJobParameter
(T value, Class<T> type) Create a new identifyingJobParameter
.JobParameter
(T value, Class<T> type, boolean identifying) Create a newJobParameter
. -
Method Summary
-
Constructor Details
-
JobParameter
Create a newJobParameter
.- Parameters:
value
- the value of the parameter. Must not benull
.type
- the type of the parameter. Must not benull
.identifying
- true if the parameter is identifying. false otherwise.
-
JobParameter
Create a new identifyingJobParameter
.- Parameters:
value
- the value of the parameter. Must not benull
.type
- the type of the parameter. Must not benull
.
-
-
Method Details
-
isIdentifying
public boolean isIdentifying()- Returns:
- The identifying flag. It is set to
true
if the job parameter is identifying.
-
getValue
- Returns:
- the value contained within this
JobParameter
.
-
getType
Return the type of the parameter.- Returns:
- the type of the parameter
-
equals
-
toString
-
hashCode
public int hashCode()
-