|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.transaction.RunnableWithResult.Impl<T>
public abstract static class RunnableWithResult.Impl<T>
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<T> |
Constructor Summary | |
---|---|
RunnableWithResult.Impl()
|
Method Summary | |
---|---|
T |
getResult()
Returns a result computed by my Runnable.run() method. |
IStatus |
getStatus()
Queries my commit status. |
protected void |
setResult(T 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(T result)
result
- my resultpublic final IStatus getStatus()
RunnableWithResult
getStatus
in interface RunnableWithResult<T>
RunnableWithResult.setStatus(IStatus)
method)public final T getResult()
RunnableWithResult
Runnable.run()
method.
getResult
in interface RunnableWithResult<T>
null
if nonepublic final void setStatus(IStatus status)
RunnableWithResult
Runnable.run()
method.
setStatus
in interface RunnableWithResult<T>
status
- 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 |