|
RSE Release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.rse.core.model.RSEModelOperation
public abstract class RSEModelOperation
Provides a transaction boundary for RSE model operations. All operations that modify model objects should be done within an RSEModelOperation. These operations may be nested. Changes made to the model will be persisted when the outermost operation of a particular thread is exited.
The usage idiom is to create an anonymous subclass of this class just prior to
use, overriding the execute()
method, and then invoke the run()
method.
RSEModelOperation m = new RSEModelOperation() { public void execute() { ... do work here ... } }; m.run();
under development - provisional
Constructor Summary | |
---|---|
RSEModelOperation()
Create a new operation scoped to the current thread. |
Method Summary | |
---|---|
static void |
check()
Checks the current thread to see if there is a model transaction in progress. |
abstract void |
execute()
Perform the work of this operation. |
void |
run()
Runs this operation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RSEModelOperation()
Method Detail |
---|
public static void check()
public abstract void execute()
public void run()
execute()
method to be invoked inside
a transaction boundary.
|
RSE Release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |