|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.quartz.utils.DirtyFlagMap
org.quartz.JobDataMap
Holds state information for Job
instances.
JobDataMap
instances are stored once when the
Job
is added to a scheduler. They are also re-persisted after
every execution of StatefulJob
instances.
Job
,
StatefulJob
,
Serialized FormNested Class Summary |
Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
Constructor Summary | |
JobDataMap()
Create an empty JobDataMap . |
|
JobDataMap(java.util.Map map)
Create a JobDataMap with the given data. |
Method Summary | |
boolean |
containsTransientData()
|
boolean |
getAllowsTransientData()
|
boolean |
getBoolean(java.lang.String key)
Retrieve the identified code>boolean value from the JobDataMap . |
char |
getChar(java.lang.String key)
Retrieve the identified code>char value from the JobDataMap . |
double |
getDouble(java.lang.String key)
Retrieve the identified code>double value from the JobDataMap . |
float |
getFloat(java.lang.String key)
Retrieve the identified code>float value from the JobDataMap . |
int |
getInt(java.lang.String key)
Retrieve the identified code>int value from the JobDataMap . |
java.lang.String[] |
getKeys()
|
long |
getLong(java.lang.String key)
Retrieve the identified code>long value from the JobDataMap . |
java.lang.String |
getString(java.lang.String key)
Retrieve the identified code>String value from the JobDataMap . |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Adds the given Serializable object value to the
JobDataMap . |
void |
put(java.lang.String key,
boolean value)
Adds the given boolean value to the Job 's
data map. |
void |
put(java.lang.String key,
char value)
Adds the given char value to the Job 's
data map. |
void |
put(java.lang.String key,
double value)
Adds the given double value to the Job 's
data map. |
void |
put(java.lang.String key,
float value)
Adds the given float value to the Job 's
data map. |
void |
put(java.lang.String key,
int value)
Adds the given int value to the Job 's
data map. |
void |
put(java.lang.String key,
long value)
Adds the given long value to the Job 's
data map. |
void |
put(java.lang.String key,
java.lang.String value)
Adds the given String value to the Job 's
data map. |
void |
putAll(java.util.Map map)
Adds the name-value pairs in the given Map to the
JobDataMap . |
void |
removeTransientData()
Nulls-out any data values that are non-Serializable. |
void |
setAllowsTransientData(boolean allowsTransientData)
Tell the JobDataMap that it should allow
non-Serializable data. |
Methods inherited from class org.quartz.utils.DirtyFlagMap |
clear, clearDirtyFlag, clone, containsKey, containsValue, entrySet, equals, get, getWrappedMap, isDirty, isEmpty, keySet, remove, size, values |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map |
hashCode |
Constructor Detail |
public JobDataMap()
Create an empty JobDataMap
.
public JobDataMap(java.util.Map map)
Create a JobDataMap
with the given data.
Method Detail |
public void setAllowsTransientData(boolean allowsTransientData)
Tell the JobDataMap
that it should allow
non-Serializable
data.
If the JobDataMap
does contain
non-Serializable
objects, and it belongs to a non-volatile
Job
that is stored in a JobStore
that supports
persistence, then those elements will be nulled-out during persistence.
public boolean getAllowsTransientData()
public boolean containsTransientData()
public void removeTransientData()
Nulls-out any data values that are non-Serializable.
public void putAll(java.util.Map map)
Adds the name-value pairs in the given Map
to the
JobDataMap
.
All keys must be String
s, and all values must be
Serializable
.
putAll
in interface java.util.Map
putAll
in class DirtyFlagMap
public void put(java.lang.String key, int value)
Adds the given int
value to the Job
's
data map.
public void put(java.lang.String key, long value)
Adds the given long
value to the Job
's
data map.
public void put(java.lang.String key, float value)
Adds the given float
value to the Job
's
data map.
public void put(java.lang.String key, double value)
Adds the given double
value to the Job
's
data map.
public void put(java.lang.String key, boolean value)
Adds the given boolean
value to the Job
's
data map.
public void put(java.lang.String key, char value)
Adds the given char
value to the Job
's
data map.
public void put(java.lang.String key, java.lang.String value)
Adds the given String
value to the Job
's
data map.
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
Adds the given Serializable
object value to the
JobDataMap
.
put
in interface java.util.Map
put
in class DirtyFlagMap
public int getInt(java.lang.String key)
Retrieve the identified code>int value from the
JobDataMap
.
java.lang.ClassCastException
- if the identified object is not an Integer.public long getLong(java.lang.String key)
Retrieve the identified code>long value from the
JobDataMap
.
java.lang.ClassCastException
- if the identified object is not a Long.public float getFloat(java.lang.String key)
Retrieve the identified code>float value from the
JobDataMap
.
java.lang.ClassCastException
- if the identified object is not a Float.public double getDouble(java.lang.String key)
Retrieve the identified code>double value from the
JobDataMap
.
java.lang.ClassCastException
- if the identified object is not a Double.public boolean getBoolean(java.lang.String key)
Retrieve the identified code>boolean value from the
JobDataMap
.
java.lang.ClassCastException
- if the identified object is not a Boolean.public char getChar(java.lang.String key)
Retrieve the identified code>char value from the
JobDataMap
.
java.lang.ClassCastException
- if the identified object is not a Character.public java.lang.String getString(java.lang.String key)
Retrieve the identified code>String value from the
JobDataMap
.
java.lang.ClassCastException
- if the identified object is not a String.public java.lang.String[] getKeys()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |