|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.sqlunit.beans.DatabaseResult
public class DatabaseResult
The DatabaseResult models a Database Result.
| Constructor Summary | |
|---|---|
DatabaseResult()
Default constructor. |
|
| Method Summary | |
|---|---|
boolean |
getEchoOnly()
Returns the echoOnly property of the DatabaseResult object. |
ExceptionBean |
getException()
Returns the exception from the DatabaseResult object. |
int |
getNumCols(int resultSetIndex)
Returns the number of columns in resultset identified by resultset index. |
int |
getNumResults()
Returns the number of result sets in the DatabaseResult. |
int |
getNumRows(int resultSetIndex)
Returns the number of rows in resultset identified by resultset index. |
OutParam[] |
getOutParams()
Returns an array of OutParam objects for this DatabaseResult object. |
ResultSetBean[] |
getResultSets()
Returns an array of ResultSetBean objects for this DatabaseResult object. |
int |
getUpdateCount()
Returns the update count associated with this DatabaseResult. |
boolean |
isException()
Returns true if the DatabaseResult represents an Exception. |
void |
resetAsException(java.lang.String errCode,
java.lang.String errMessage)
Creates the exception version of a DatabaseResult (this). |
void |
setEchoOnly(boolean echoOnly)
Sets the echoOnly property of the DatabaseResult object. |
void |
setOutParams(OutParam[] outParams)
Sets the outparams into the DatabaseResult object. |
void |
setResultSets(ResultSetBean[] rsbs)
Sets the resultsets into the DatabaseResult object. |
void |
setUpdateCount(int updateCount)
Sets the update count for the DatabaseResult. |
org.jdom.Element |
toElement()
Returns the DatabaseResult object as a JDOM Element. |
java.lang.String |
toString()
Returns a String representation of the DatabaseResult object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DatabaseResult()
| Method Detail |
|---|
public final int getNumResults()
public final int getNumRows(int resultSetIndex)
resultSetIndex - the index of the resultset in the DatabaseResult.
The resultset index is 1-based.
public final int getNumCols(int resultSetIndex)
resultSetIndex - the index of the resultset in the DatabaseResult.
public final OutParam[] getOutParams()
public final void setOutParams(OutParam[] outParams)
outParams - an array of OutParam objects.public final ResultSetBean[] getResultSets()
public final void setResultSets(ResultSetBean[] rsbs)
rsbs - an array of ResultSetBean objects.public final boolean isException()
public final ExceptionBean getException()
public final void resetAsException(java.lang.String errCode,
java.lang.String errMessage)
errCode - the code to populate.errMessage - the message to populate.public final int getUpdateCount()
public final void setUpdateCount(int updateCount)
updateCount - the updateCount to update.public final boolean getEchoOnly()
public final void setEchoOnly(boolean echoOnly)
echoOnly - the echoOnly property. Valid values are true and false.public final org.jdom.Element toElement()
public final 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 | |||||||||