|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.customware.gwt.dispatch.shared.BatchResult
public class BatchResult
Contains the list of Results from successful actions in the
BatchAction. The order will match the order of the original
Actions listed in the BatchAction.
If the BatchAction was specified to have an BatchAction.OnException value
of BatchAction.OnException.CONTINUE, failed actions will have a null
value, and there will be an exception available via the getExceptions() or getException(int) methods
for the same index.
This class also implements Iterable, so it can be used in 'for'
loops.
| Constructor Summary | |
|---|---|
BatchResult(List<Result> results,
List<DispatchException> exceptions)
Creates a new result with the list of results from the batch action, in order. |
|
| Method Summary | ||
|---|---|---|
Throwable |
getException(int index)
|
|
List<DispatchException> |
getExceptions()
The list of exceptions, matched to the result number. |
|
Result |
getResult(int i)
Returns the result for the specified index. |
|
|
getResult(int i,
Class<T> type)
Returns the result only if the value at the specified index is of the specified type. |
|
List<Result> |
getResults()
The list of results. |
|
Iterator<Result> |
iterator()
|
|
int |
size()
The size of the result set. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BatchResult(List<Result> results,
List<DispatchException> exceptions)
results - The list of results.| Method Detail |
|---|
public List<Result> getResults()
public List<DispatchException> getExceptions()
public int size()
public Result getResult(int i)
i - The index.
public <T extends Result> T getResult(int i,
Class<T> type)
T - The type of result to retrieve.i - The index.type - The type value.
public Throwable getException(int index)
public Iterator<Result> iterator()
iterator in interface Iterable<Result>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||