com.reuters.rc.db.adb
Class AdbMInstChildPubMsgData

java.lang.Object
  |
  +--com.reuters.rc.db.adb.AdbMInstChildPubMsgData
All Implemented Interfaces:
DbChildPubMsgData

public class AdbMInstChildPubMsgData
extends java.lang.Object
implements DbChildPubMsgData

This class represents the child table data of a MInstance message published by an ADB agent. It provides methods to extract the data from the MInstance message.

Author:
Jawaid Hakim.

Constructor Summary
AdbMInstChildPubMsgData(java.lang.String fldName, com.tibco.tibrv.TibrvMsg childMsgData)
          Constructor.
 
Method Summary
 java.lang.String getClassName()
          Get the child class name from which the update is published.
 DbPubMsgData getData(int idx)
          Get a specified child row data.
 int getIdx()
          Get the IDX of the child table data rows.
 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

AdbMInstChildPubMsgData

public AdbMInstChildPubMsgData(java.lang.String fldName,
                               com.tibco.tibrv.TibrvMsg childMsgData)
Constructor.
Parameters:
fldName - Name of the child data field.
childMsgData - Child data published by ADB.
Method Detail

isValid

public final boolean isValid()
Check if the object contains a valid result set.
Specified by:
isValid in interface DbChildPubMsgData
Returns:
true if the object contains a valid result set. Returns false if the object does not contain a valid result set.

getData

public final DbPubMsgData getData(int idx)
Get a specified child row data.
Specified by:
getData in interface DbChildPubMsgData
Parameters:
The - idx of the requested row.
Returns:
Specifiedlished child row data. Returns null if the specified child row data is not found.

getIdx

public final int getIdx()
Get the IDX of the child table data rows.
Specified by:
getIdx in interface DbChildPubMsgData
Returns:
IDX of the child table data rows. Returns -1 if the IDX is not found.

getClassName

public final java.lang.String getClassName()
                                    throws AdbSystemException
Get the child class name from which the update is published.
Specified by:
getClassName in interface DbChildPubMsgData
Returns:
Child table name. null is returned if the child class name is not found.

toString

public java.lang.String toString()
Override.
Overrides:
toString in class java.lang.Object


Copyright © 2002-2003 Reuters. All Rights Reserved.