com.ibm.websphere.batch.context
Interface PersistentMap
-
- All Superinterfaces:
- java.io.Externalizable, java.io.Serializable
public interface PersistentMap extends java.io.Externalizable
-
-
Method Summary
Methods Modifier and Type Method and Description boolean
containsKey(java.lang.String key)
Returns true if this map contains a mapping for the specified keyboolean
getBoolean(java.lang.String key)
Returns the boolean value for the specified key.double
getDouble(java.lang.String key)
Returns the double value for the specified key.int
getInt(java.lang.String key)
Returns the int value for the specified key.long
getLong(java.lang.String key)
Returns the long value for the specified key.java.lang.String
getString(java.lang.String key)
Returns the String value for the specified key.void
setBoolean(java.lang.String key, boolean value)
Associates the specified boolean value with the specified key in this map.void
setDouble(java.lang.String key, double value)
Associates the specified double value with the specified key in this map.void
setInt(java.lang.String key, int value)
Associates the specified int value with the specified key in this map.void
setLong(java.lang.String key, long value)
Associates the specified long value with the specified key in this map.void
setString(java.lang.String key, java.lang.String value)
Associates the specified String value with the specified key in this map.
-
-
-
Method Detail
-
containsKey
boolean containsKey(java.lang.String key)
Returns true if this map contains a mapping for the specified key- Parameters:
key
-- Returns:
- true or false
-
getBoolean
boolean getBoolean(java.lang.String key) throws BatchContainerPersistentContextException
Returns the boolean value for the specified key. If the key does not exist or the value cannot be mapped to a boolean, a BatchContainerPersistentContextException is thrown.- Parameters:
key
-- Returns:
- true or false
- Throws:
BatchContainerPersistentContextException
-
setBoolean
void setBoolean(java.lang.String key, boolean value)
Associates the specified boolean value with the specified key in this map.- Parameters:
key
-boolean
- value
-
getDouble
double getDouble(java.lang.String key) throws BatchContainerPersistentContextException
Returns the double value for the specified key. If the key does not exist or the value cannot be mapped to a double, a BatchContainerPersistentContextException is thrown.- Parameters:
key
-- Returns:
- double value
- Throws:
BatchContainerPersistentContextException
-
setDouble
void setDouble(java.lang.String key, double value)
Associates the specified double value with the specified key in this map.- Parameters:
key
-double
- value
-
getInt
int getInt(java.lang.String key) throws BatchContainerPersistentContextException
Returns the int value for the specified key. If the key does not exist or the value cannot be mapped to an int, a BatchContainerPersistentContextException is thrown.- Parameters:
key
-- Returns:
- int value
- Throws:
BatchContainerPersistentContextException
-
setInt
void setInt(java.lang.String key, int value)
Associates the specified int value with the specified key in this map.- Parameters:
key
-int
- value
-
getLong
long getLong(java.lang.String key) throws BatchContainerPersistentContextException
Returns the long value for the specified key. If the key does not exist or the value cannot be mapped to a long, a BatchContainerPersistentContextException is thrown.- Parameters:
key
-- Returns:
- long value
- Throws:
BatchContainerPersistentContextException
-
setLong
void setLong(java.lang.String key, long value)
Associates the specified long value with the specified key in this map.- Parameters:
key
-long
- value
-
getString
java.lang.String getString(java.lang.String key) throws BatchContainerPersistentContextException
Returns the String value for the specified key. If the key does not exist or the value cannot be mapped to a String, a BatchContainerPersistentContextException is thrown.- Parameters:
key
-- Returns:
- String value
- Throws:
BatchContainerPersistentContextException
-
setString
void setString(java.lang.String key, java.lang.String value)
Associates the specified String value with the specified key in this map.- Parameters:
key
-String
- value
-
-