com.ptc.windchill.upgrade.ius
Interface DirectiveServices

All Known Implementing Classes:
UpdateRunner.DirectiveServicesAdapter

public interface DirectiveServices

A view into the UpgradeContext and a means for logging.

Supported API: false

Extendable: false


Method Summary
 Connection getConnection()
          Provide a JDBC connection that is active in the current method context.
 UUID getCurrentIncrementalUpdateUuid()
          The UUID of the Incremental Update currently being executed.
 PersistentObjectManager getPOM()
          Provide the PersistentObjectManager from method context.
 ReleaseId[] getSourceVersions()
          The release ids of assemblies installed in the database.
 ReleaseId[] getTargetVersions()
          The release ids of assemblies installed on the target system.
 void log(String message)
          Log the message.
 void log(String message, Throwable error)
          Log the message with the error.
 void run(DirectiveServices ds)
           
 

Method Detail

getConnection

public Connection getConnection()
                         throws DirectiveExecutionException
Provide a JDBC connection that is active in the current method context.

Throws:
DirectiveExecutionException - if there is an error trying to obtain a connection reference

getPOM

public PersistentObjectManager getPOM()
                               throws DirectiveExecutionException
Provide the PersistentObjectManager from method context.

Throws:
DirectiveExecutionException - if there is an error trying to obtain a POM reference

getCurrentIncrementalUpdateUuid

public UUID getCurrentIncrementalUpdateUuid()
The UUID of the Incremental Update currently being executed.


getSourceVersions

public ReleaseId[] getSourceVersions()
The release ids of assemblies installed in the database.


getTargetVersions

public ReleaseId[] getTargetVersions()
The release ids of assemblies installed on the target system.


run

public void run(DirectiveServices ds)

log

public void log(String message)
Log the message.


log

public void log(String message,
                Throwable error)
Log the message with the error.