|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.transaction.RunnableWithResult.Impl
public abstract static class RunnableWithResult.Impl
A convenient partial implementation of the RunnableWithResult
interface that implements a settable result
field and commit status.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.emf.transaction.RunnableWithResult |
|---|
RunnableWithResult.Impl |
| Constructor Summary | |
|---|---|
RunnableWithResult.Impl()
|
|
| Method Summary | |
|---|---|
Object |
getResult()
Returns a result computed by my Runnable.run() method. |
IStatus |
getStatus()
Queries my commit status. |
protected void |
setResult(Object result)
Sets my result. |
void |
setStatus(IStatus status)
Sets the commit status after completion of the Runnable.run() method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.lang.Runnable |
|---|
run |
| Constructor Detail |
|---|
public RunnableWithResult.Impl()
| Method Detail |
|---|
protected final void setResult(Object result)
result - my resultpublic final IStatus getStatus()
RunnableWithResult
getStatus in interface RunnableWithResultRunnableWithResult.setStatus(IStatus) method)public final Object getResult()
RunnableWithResultRunnable.run() method.
getResult in interface RunnableWithResultnull if nonepublic final void setStatus(IStatus status)
RunnableWithResultRunnable.run() method.
setStatus in interface RunnableWithResultstatus - an OK status if commit succeeds, or an error status
if it fails (in which case the transaction rolled back and the status
provides details in human-readable form)
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||