|
||||||||||
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
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 RunnableWithResult
RunnableWithResult.setStatus(IStatus)
method)public final Object getResult()
RunnableWithResult
Runnable.run()
method.
getResult
in interface RunnableWithResult
null
if nonepublic final void setStatus(IStatus status)
RunnableWithResult
Runnable.run()
method.
setStatus
in interface RunnableWithResult
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 |