|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.db2.tools.repl.publication.Msg
The Msg class is the base class for the hierarchy of XML publication messages. All messages are a subclass of this class. Generally, you need to cast the object to the correct subclass.
Field Summary | |
---|---|
protected java.lang.String |
dbName
|
protected javax.jms.Message |
jmsMsg
|
protected static java.lang.String |
topicHeader
|
Constructor Summary | |
---|---|
Msg()
|
Method Summary | |
---|---|
java.lang.String |
getDbName()
This allows access to the dbName attribute of the xml message |
javax.jms.Message |
getJMSMessage()
Access the navite JMS MQ message. |
java.lang.Object |
getObjectProperty(java.lang.String propertyName)
Access a specific property in the native MQ message. |
java.util.Enumeration |
getPropertyNames()
Access all the property names that are in the native MQ message. |
java.lang.String |
getTopic(boolean stripHeader)
Access the name of the topic that was specified during the definition of the xml publication. |
void |
setDbName(java.lang.String dbName)
This method has no effect when used by a PublicationListener. |
void |
setJMSMessage(javax.jms.Message m)
This method has no effect when used by a PublicationListener. |
java.lang.String |
toString()
Override so we can print the values in a nice textual format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final java.lang.String topicHeader
protected java.lang.String dbName
protected javax.jms.Message jmsMsg
Constructor Detail |
public Msg()
Method Detail |
public java.lang.String getDbName()
public java.lang.String getTopic(boolean stripHeader)
stripHeader
- True: Remove the "topic://" header. False: Return complete JMS topic name
public java.util.Enumeration getPropertyNames()
public java.lang.Object getObjectProperty(java.lang.String propertyName)
public javax.jms.Message getJMSMessage()
public void setDbName(java.lang.String dbName)
dbName
- The name of the dbpublic void setJMSMessage(javax.jms.Message m)
m
- The JMS messagepublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |