Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Release 3.0

Class RSEModelOperation

  extended by 

public abstract class RSEModelOperation
extends Object

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 ...

under development - provisional

RSE 2.0

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()
Create a new operation scoped to the current thread.

Method Detail


public static void check()
Checks the current thread to see if there is a model transaction in progress. Should be used inside model objects prior to a change to a persistent property.


public abstract void execute()
Perform the work of this operation. This is where the work of modifying several model properties or objects can be done.


public void run()
Runs this operation. This will cause the execute() method to be invoked inside a transaction boundary.

Release 3.0

Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire