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 booleancontainsKey(java.lang.String key)Returns true if this map contains a mapping for the specified keybooleangetBoolean(java.lang.String key)Returns the boolean value for the specified key.doublegetDouble(java.lang.String key)Returns the double value for the specified key.intgetInt(java.lang.String key)Returns the int value for the specified key.longgetLong(java.lang.String key)Returns the long value for the specified key.java.lang.StringgetString(java.lang.String key)Returns the String value for the specified key.voidsetBoolean(java.lang.String key, boolean value)Associates the specified boolean value with the specified key in this map.voidsetDouble(java.lang.String key, double value)Associates the specified double value with the specified key in this map.voidsetInt(java.lang.String key, int value)Associates the specified int value with the specified key in this map.voidsetLong(java.lang.String key, long value)Associates the specified long value with the specified key in this map.voidsetString(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 BatchContainerPersistentContextExceptionReturns 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 BatchContainerPersistentContextExceptionReturns 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 BatchContainerPersistentContextExceptionReturns 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 BatchContainerPersistentContextExceptionReturns 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 BatchContainerPersistentContextExceptionReturns 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
-
-