|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.reuters.rc.db.adb.AdbReply
This class represents the reply sent by ADB in response to a request. Each response contains zero or more result sets, and each result set contains zero or more result rows.
AdbRequest
Constructor Summary | |
AdbReply(com.tibco.tibrv.TibrvMsg replyMsg)
Constructor. |
Method Summary | |
java.lang.Object |
getClosure()
Get the closure argument. |
java.lang.String |
getError()
Get a description of the error. |
com.tibco.tibrv.TibrvMsg |
getResultRow(int index)
Get a row from the first result set. |
com.tibco.tibrv.TibrvMsg |
getResultRow(int resultSet,
int index)
Get a row from the specified result set. |
int |
getResultRowCount()
Get the number of rows in the first result set. |
int |
getResultRowCount(int resultSet)
Get the number of rows in the specified result set. |
int |
getResultSetCount()
Get the number of result sets. |
java.lang.String |
getSql()
Get the sql that caused the error. |
int |
getStatus()
Get the reply status. |
boolean |
isValid()
Check if the instance contains a valid result set. |
java.lang.String |
toPrettyPrintString()
Pretty Print the reply message. |
java.lang.String |
toString()
Override toString(). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AdbReply(com.tibco.tibrv.TibrvMsg replyMsg)
replyMsg
- Reply message from ADB.Method Detail |
public final boolean isValid()
isValid
in interface DbReply
true
if the object contains a valid
result set. Returns false
if the instance does
not contain a valid result set.getStatus()
public java.lang.String toString()
toString
in class java.lang.Object
public final java.lang.String toPrettyPrintString() throws AdbBusinessException, AdbSystemException
toPrettyPrintString
in interface DbReply
public final int getStatus() throws AdbBusinessException, AdbSystemException
getStatus
in interface DbReply
0
indicates success. A non-zero status
indicates ADB error.getError()
public final java.lang.String getSql() throws AdbBusinessException, AdbSystemException
getSql
in interface DbReply
null
is
returned if there is no error.getStatus()
,
isValid()
,
getError()
public final java.lang.String getError() throws AdbBusinessException, AdbSystemException
getError
in interface DbReply
getStatus()
,
getSql()
public final java.lang.Object getClosure() throws AdbBusinessException, AdbSystemException
getClosure
in interface DbReply
TibrvException
is thrown if
there is no closure.public final int getResultSetCount() throws AdbBusinessException, AdbSystemException
getResultSetCount
in interface DbReply
public final int getResultRowCount() throws AdbBusinessException, AdbSystemException
getResultRowCount
in interface DbReply
getResultSetCount()
public final int getResultRowCount(int resultSet) throws AdbBusinessException, AdbSystemException
getResultRowCount
in interface DbReply
resultSet
- Result set number starting at 1
.getResultSetCount()
public final com.tibco.tibrv.TibrvMsg getResultRow(int index) throws AdbBusinessException, AdbSystemException
getResultRow
in interface DbReply
index
- Result set row number. Row numbers start at 0
.null
is
returned if the requested row is not found in the first result set.public final com.tibco.tibrv.TibrvMsg getResultRow(int resultSet, int index) throws AdbBusinessException, AdbSystemException
1
.getResultRow
in interface DbReply
resultSet
- Result set number. Result set numbers start at 1
.index
- Result set row number. Row numbers start at 0
.null
is
returned if the requested row is not found in the specified result set.getResultSetCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |