|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.sqlunit.beans.BatchDatabaseResult
public class BatchDatabaseResult
The BatchDatabaseResult represents the output from a batch update operation.
Constructor Summary | |
---|---|
BatchDatabaseResult()
Instantiates a BatchDatabaseResult object. |
Method Summary | |
---|---|
void |
addUpdateCount(int updateCount)
Allows setting of the update count from a specified integer value. |
void |
addUpdateCount(java.lang.String updateCountString)
Allows setting of the update count from a specified numeric value or one of the two acceptable symbolic values. |
int |
getActualCount()
Returns the size of the underlying List of updateCounts. |
int |
getExpectedCount()
Returns the expectedCount attribute from the BatchDatabaseResult object. |
int |
getFailedAtIndex()
Returns the zero-based index into the BatchDatabaseResult object where the fist failure is expected to occur. |
java.lang.String |
getUpdateCountAt(int index)
Returns the update count at the index into the BatchDatabaseResult object. |
void |
resetUpdateCounts()
Removes all the update counts from the underlying List object. |
static void |
setException(java.sql.BatchUpdateException exception)
Sets the batch exception into the result object. |
void |
setExpectedCount(int expectedCount)
Sets the expectedCount attribute from the BatchDatabaseResult object. |
void |
setFailedAtIndex(int failedAtIndex)
Sets the zero-based index into the BatchDatabaseResult object where the fist failure is expected to occur. |
org.jdom.Element |
toElement()
Returns the BatchDatabaseResult object as a JDOM Element. |
java.lang.String |
toString()
Returns the String representation of the BatchDatabaseResult object by converting it from its internal format to a JDOM Element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BatchDatabaseResult()
Method Detail |
---|
public final int getExpectedCount()
public final void setExpectedCount(int expectedCount)
expectedCount
- the expected number of results for this object.public final int getFailedAtIndex()
public final void setFailedAtIndex(int failedAtIndex)
failedAtIndex
- zero-based index where the failure is expected.public final int getActualCount()
public final java.lang.String getUpdateCountAt(int index)
index
- the index into the BatchDatabaseResult object.
public final void addUpdateCount(int updateCount)
updateCount
- an integer value to set.public final void addUpdateCount(java.lang.String updateCountString)
updateCountString
- the specified value of the update count.public final void resetUpdateCounts()
public static final void setException(java.sql.BatchUpdateException exception)
exception
- the BatchUpdateException object to set.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 All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |