|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.reuters.rc.db.adb.AdbMInstPubMsgData
This class represents the data of a MInstance message published by an ADB agent. It provides methods to extract the data from the MInstance message. A set of static methods is provided to extract the data from the MInstance message without having to create an instance of this class.
If a database table has the parent role in a parent-child relationship with another table and the ADB publishing agents are configured to published child rows, then, when the parent table is modified, ADB will publish the related rows from the child table(s). The child table data can be retrieved using an instance of this class.
AdbMInstChildPubMsgData
Constructor Summary | |
AdbMInstPubMsgData(com.tibco.tibrv.TibrvMsg msgData)
Constructor. |
Method Summary | |
java.lang.String |
getAgentId()
Get the Agent Id. |
static java.lang.String |
getAgentId(com.tibco.tibrv.TibrvMsg rvMsg)
Get the Agent Id. |
DbChildPubMsgData[] |
getChildRowData()
Get all the child table data. |
java.lang.String |
getClassName()
Get the message class - the message class is the name of the table from which the update is published. |
static java.lang.String |
getClassName(com.tibco.tibrv.TibrvMsg rvMsg)
Get the message class - the message class is the name of the table from which the update is published. |
com.tibco.tibrv.TibrvMsg |
getData()
Get the published data message. |
DbOpcode |
getOpcode()
Get the message opcode. |
static AdbOpcode |
getOpcode(com.tibco.tibrv.TibrvMsg rvMsg)
Get the message opcode. |
java.lang.Long |
getSequence()
Get the message sequence number. |
static java.lang.Long |
getSequence(com.tibco.tibrv.TibrvMsg rvMsg)
Get the message sequence number. |
java.lang.String |
getSubject()
Get the message subject. |
static java.lang.String |
getSubject(com.tibco.tibrv.TibrvMsg rvMsg)
Get the message subject. |
boolean |
isValid()
Check if the object contains a valid result set. |
java.lang.String |
toString()
Override. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AdbMInstPubMsgData(com.tibco.tibrv.TibrvMsg msgData)
msgData
- Data published by ADB.Method Detail |
public final boolean isValid()
isValid
in interface DbPubMsgData
true
if the object contains a valid
result set. Returns false
if the object does
not contain a valid result set.public final com.tibco.tibrv.TibrvMsg getData()
getData
in interface DbPubMsgData
public final java.lang.String getClassName() throws AdbSystemException
getClassName
in interface DbPubMsgData
null
is returned if the
class name is not formatted correctly.public static java.lang.String getClassName(com.tibco.tibrv.TibrvMsg rvMsg) throws AdbSystemException
rvMsg
- Message data.null
is returned if the
class name is not found.public final java.lang.String getSubject() throws AdbSystemException
getSubject
in interface DbPubMsgData
null
if subject is not found.public static java.lang.String getSubject(com.tibco.tibrv.TibrvMsg rvMsg) throws AdbSystemException
rvMsg
- Message data.null
if subject is not found.public final java.lang.Long getSequence() throws AdbSystemException
getSequence
in interface DbPubMsgData
null
if sequence
number is not found.public static java.lang.Long getSequence(com.tibco.tibrv.TibrvMsg rvMsg) throws AdbSystemException
rvMsg
- Message data.null
if sequence
number is not found.public final DbOpcode getOpcode() throws AdbSystemException
getOpcode
in interface DbPubMsgData
AdbOpcode
public static AdbOpcode getOpcode(com.tibco.tibrv.TibrvMsg rvMsg) throws AdbSystemException
rvMsg
- Message data.null
if opcode is not found.AdbOpcode
public final java.lang.String getAgentId() throws AdbSystemException
getAgentId
in interface DbPubMsgData
null
if agent id is not found.public static java.lang.String getAgentId(com.tibco.tibrv.TibrvMsg rvMsg) throws AdbSystemException
rvMsg
- Message data.null
if agent id is not found.public final DbChildPubMsgData[] getChildRowData()
getChildRowData
in interface DbPubMsgData
AdbMInstChildPubMsgData
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |