public abstract class MQRoot extends java.lang.Object implements JmsPropertyContext
JmsPropertyContext
interface.
The IBM JMS Extensions are implemented by the concrete classes in com.ibm.mq.jms, therefore all
objects need to implement the property context interface.| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears all properties
|
boolean |
containsKey(java.lang.Object key)
Ascertains whether the specified key exists in the properties map
|
boolean |
containsValue(java.lang.Object value)
Ascertains whether the specified value exists in the properties map
|
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> |
entrySet()
The entry set of the properties map
|
boolean |
equals(java.lang.Object o) |
java.lang.Object |
get(java.lang.Object key)
Gets the property associated with the specified key
|
boolean |
getBooleanProperty(java.lang.String name)
Gets the boolean property value with the given name.
|
byte |
getByteProperty(java.lang.String name)
Gets the byte property value with the given name.
|
byte[] |
getBytesProperty(java.lang.String name)
Gets the bytes property value with the given name.
|
char |
getCharProperty(java.lang.String name)
Gets the char property value with the given name.
|
double |
getDoubleProperty(java.lang.String name)
Gets the double property value with the given name.
|
float |
getFloatProperty(java.lang.String name)
Gets the float property value with the given name.
|
int |
getIntProperty(java.lang.String name)
Gets the int property value with the given name.
|
long |
getLongProperty(java.lang.String name)
Gets the long property value with the given name.
|
java.lang.Object |
getObjectProperty(java.lang.String name)
Gets the Object property value with the given name.
|
java.util.Enumeration<java.lang.String> |
getPropertyNames()
Gets all properties which have been set on a resource.
|
short |
getShortProperty(java.lang.String name)
Gets the short property value with the given name.
|
java.lang.String |
getStringProperty(java.lang.String name)
Gets the String property value with the given name.
|
int |
hashCode() |
boolean |
isEmpty()
Indicates whether the properties map is empty
|
java.util.Set<java.lang.String> |
keySet()
Gets a Set of the property keys in the property map
|
boolean |
propertyExists(java.lang.String name)
Indicates whether a named property exists.
|
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
Adds the specified key and value to the properties map
|
void |
putAll(java.util.Map<? extends java.lang.String,? extends java.lang.Object> properties)
Adds the properties in the specified map to the properties map
|
java.lang.Object |
remove(java.lang.Object key)
Removes the property associated with the specified key from the properties map.
|
void |
setBatchProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
Sets multiple property values passed in via a HashMap.
|
void |
setBooleanProperty(java.lang.String name,
boolean value)
Sets a Boolean property value with the given name.
|
void |
setByteProperty(java.lang.String name,
byte value)
Sets a byte property value with the given name.
|
void |
setBytesProperty(java.lang.String name,
byte[] value)
Sets a bytes property value with the given name.
|
void |
setCharProperty(java.lang.String name,
char value)
Sets a char property value with the given name.
|
void |
setDoubleProperty(java.lang.String name,
double value)
Sets a double property value with the given name.
|
void |
setFloatProperty(java.lang.String name,
float value)
Sets a float property value with the given name.
|
void |
setIntProperty(java.lang.String name,
int value)
Sets an int property value with the given name.
|
void |
setLongProperty(java.lang.String name,
long value)
Sets a long property value with the given name.
|
void |
setObjectProperty(java.lang.String name,
java.lang.Object value)
Sets an Object property value with the given name.
|
void |
setShortProperty(java.lang.String name,
short value)
Sets a short property value with the given name.
|
void |
setStringProperty(java.lang.String name,
java.lang.String value)
Sets a String property value with the given name.
|
int |
size()
Gets the number of properties in the properties map.
|
java.util.Collection<java.lang.Object> |
values()
Gets the values of properties in the properties map.
|
public void setBatchProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
throws javax.jms.JMSException
setBatchProperties in interface JmsPropertyContextproperties - the HashMap of properties.javax.jms.JMSException - if any property is marked read-only or if the proposed value is invalid
for any property.public void setBooleanProperty(java.lang.String name,
boolean value)
throws javax.jms.JMSException
setBooleanProperty in interface JmsPropertyContextname - the name of the Boolean property.value - the Boolean property value to set.javax.jms.JMSException - if the property is marked read-only or if the proposed value is invalid
for the property.public void setByteProperty(java.lang.String name,
byte value)
throws javax.jms.JMSException
setByteProperty in interface JmsPropertyContextname - the name of the byte property.value - the byte property value to set.javax.jms.JMSException - if the property is marked read-only or if the proposed value is invalid
for the property.public void setBytesProperty(java.lang.String name,
byte[] value)
throws javax.jms.JMSException
setBytesProperty in interface JmsPropertyContextname - the name of the bytes property.value - the bytes property value to set.javax.jms.JMSException - if the property is marked read-only or if the proposed value is invalid
for the property.public void setCharProperty(java.lang.String name,
char value)
throws javax.jms.JMSException
setCharProperty in interface JmsPropertyContextname - the name of the char property.value - the char property value to set.javax.jms.JMSException - if the property is marked read-only or if the proposed value is invalid
for the property.public void setDoubleProperty(java.lang.String name,
double value)
throws javax.jms.JMSException
setDoubleProperty in interface JmsPropertyContextname - the name of the double property.value - the double property value to set.javax.jms.JMSException - if the property is marked read-only or if the proposed value is invalid
for the property.public void setFloatProperty(java.lang.String name,
float value)
throws javax.jms.JMSException
setFloatProperty in interface JmsPropertyContextname - the name of the float property.value - the float property value to set.javax.jms.JMSException - if the property is marked read-only or if the proposed value is invalid
for the property.public void setIntProperty(java.lang.String name,
int value)
throws javax.jms.JMSException
setIntProperty in interface JmsPropertyContextname - the name of the int property.value - the int property value to set.javax.jms.JMSException - if the property is marked read-only or if the proposed value is invalid
for the property.public void setLongProperty(java.lang.String name,
long value)
throws javax.jms.JMSException
setLongProperty in interface JmsPropertyContextname - the name of the long property.value - the long property value to set.javax.jms.JMSException - if the property is marked read-only or if the proposed value is invalid
for the property.public void setObjectProperty(java.lang.String name,
java.lang.Object value)
throws javax.jms.JMSException
setObjectProperty in interface JmsPropertyContextname - the name of the Object property.value - the Object property value to set.javax.jms.JMSException - if the property is marked read-only or if the proposed value is invalid
for the property.public void setShortProperty(java.lang.String name,
short value)
throws javax.jms.JMSException
setShortProperty in interface JmsPropertyContextname - the name of the short property.value - the short property value to set.javax.jms.JMSException - if the property is marked read-only or if the proposed value is invalid
for the property.public void setStringProperty(java.lang.String name,
java.lang.String value)
throws javax.jms.JMSException
setStringProperty in interface JmsPropertyContextname - the name of the String property.value - the String property value to set.javax.jms.JMSException - if the property is marked read-only or if the proposed value is invalid
for the property.public boolean getBooleanProperty(java.lang.String name)
throws javax.jms.JMSException
getBooleanProperty in interface JmsReadablePropertyContextname - the name of the property to be retrieved.javax.jms.JMSExceptionpublic byte getByteProperty(java.lang.String name)
throws javax.jms.JMSException
getByteProperty in interface JmsReadablePropertyContextname - the name of the property to be retrieved.javax.jms.JMSExceptionpublic byte[] getBytesProperty(java.lang.String name)
throws javax.jms.JMSException
getBytesProperty in interface JmsReadablePropertyContextname - the name of the property to be retrieved.javax.jms.JMSExceptionpublic char getCharProperty(java.lang.String name)
throws javax.jms.JMSException
getCharProperty in interface JmsReadablePropertyContextname - the name of the property to be retrieved.javax.jms.JMSExceptionpublic double getDoubleProperty(java.lang.String name)
throws javax.jms.JMSException
getDoubleProperty in interface JmsReadablePropertyContextname - the name of the property to be retrieved.javax.jms.JMSExceptionpublic float getFloatProperty(java.lang.String name)
throws javax.jms.JMSException
getFloatProperty in interface JmsReadablePropertyContextname - the name of the property to be retrieved.javax.jms.JMSExceptionpublic int getIntProperty(java.lang.String name)
throws javax.jms.JMSException
getIntProperty in interface JmsReadablePropertyContextname - the name of the property to be retrieved.javax.jms.JMSExceptionpublic long getLongProperty(java.lang.String name)
throws javax.jms.JMSException
getLongProperty in interface JmsReadablePropertyContextname - the name of the property to be retrieved.javax.jms.JMSExceptionpublic java.lang.Object getObjectProperty(java.lang.String name)
throws javax.jms.JMSException
getObjectProperty in interface JmsReadablePropertyContextname - the name of the property to be retrieved.javax.jms.JMSExceptionpublic java.util.Enumeration<java.lang.String> getPropertyNames()
throws javax.jms.JMSException
getPropertyNames in interface JmsReadablePropertyContextjavax.jms.JMSExceptionpublic short getShortProperty(java.lang.String name)
throws javax.jms.JMSException
getShortProperty in interface JmsReadablePropertyContextname - the name of the property to be retrieved.javax.jms.JMSExceptionpublic java.lang.String getStringProperty(java.lang.String name)
throws javax.jms.JMSException
getStringProperty in interface JmsReadablePropertyContextname - the name of the property to be retrieved.javax.jms.JMSExceptionpublic boolean propertyExists(java.lang.String name)
throws javax.jms.JMSException
propertyExists in interface JmsReadablePropertyContextname - the name of the property to be retrieved.javax.jms.JMSExceptionpublic void clear()
clear in interface java.util.Map<java.lang.String,java.lang.Object>Map.clear()public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<java.lang.String,java.lang.Object>key - key to checkMap.containsKey(java.lang.Object)public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.String,java.lang.Object>value - value to checkMap.containsKey(java.lang.Object)public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> entrySet()
entrySet in interface java.util.Map<java.lang.String,java.lang.Object>Map.entrySet()public java.lang.Object get(java.lang.Object key)
get in interface java.util.Map<java.lang.String,java.lang.Object>Map.get(java.lang.Object)public boolean isEmpty()
isEmpty in interface java.util.Map<java.lang.String,java.lang.Object>Map.isEmpty()public java.util.Set<java.lang.String> keySet()
keySet in interface java.util.Map<java.lang.String,java.lang.Object>Map.keySet()public java.lang.Object put(java.lang.String key,
java.lang.Object value)
put in interface java.util.Map<java.lang.String,java.lang.Object>key - the key associated with the propertyvalue - the property valueMap.put(java.lang.Object, java.lang.Object)public void putAll(java.util.Map<? extends java.lang.String,? extends java.lang.Object> properties)
putAll in interface java.util.Map<java.lang.String,java.lang.Object>properties - the map of properties to setMap.putAll(java.util.Map)public java.lang.Object remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.String,java.lang.Object>key - the key associated with the property being removedMap.remove(java.lang.Object)public int size()
size in interface java.util.Map<java.lang.String,java.lang.Object>Map.size()public java.util.Collection<java.lang.Object> values()
values in interface java.util.Map<java.lang.String,java.lang.Object>Map.values()public boolean equals(java.lang.Object o)
equals in interface java.util.Map<java.lang.String,java.lang.Object>equals in class java.lang.ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in interface java.util.Map<java.lang.String,java.lang.Object>hashCode in class java.lang.ObjectObject.hashCode()