com.softwareag.mdm.service
Interface Procedure


public interface Procedure

This interface must be implemented for updating a repository and performing imports and exports in a safe way.

The procedure's execution has the following features:

A procedure is executed by calling one of the following methods:

See Also:
Concurrency and isolation levels

Method Summary
 void execute(ProcedureContext aContext)
          This method's implementation defines what this procedure actually does on the current repository.
 

Method Detail

execute

public void execute(ProcedureContext aContext)
             throws Exception
This method's implementation defines what this procedure actually does on the current repository.

Exception handling

If this method throws an exception, container properly handles it so as to preserve integrity: any modifications that would have been made during this method execution onto current repository (see ProcedureContext.getAdaptationHome()) is cancelled.

Furthermore, if a ProcedureContext method raises an exception then any preceding modifications made on the repository are first cancelled before this method gets the exception. This additional feature is for ensuring that repository and cache remain consistent, even if this method catches these exceptions.

Multi-threading

This method is called each time one of following methods is called: ServiceContext.execute(Procedure) or ProgrammaticService.execute(Procedure). Hence the possibility that, for a single instance of this interface, this method is called concurrently by several threads, depends indeed on the way the developper manages its Procedure instances in integrated or programmatic service.

Throws:
Exception


(report a bug)
webMethods MDM 4.2.8 [0558]
Copyright Software AG 2000-2007. All rights reserved.