com.ptc.windchill.upgrade.ius
Class UpdateRunner.DirectiveServicesAdapter

java.lang.Object
  extended bycom.ptc.windchill.upgrade.ius.UpdateRunner.DirectiveServicesAdapter
All Implemented Interfaces:
DirectiveServices
Enclosing class:
UpdateRunner

private class UpdateRunner.DirectiveServicesAdapter
extends Object
implements DirectiveServices


Field Summary
private  UUID currentIUUuid_
           
private  UpdateRunner runner_
           
 
Constructor Summary
UpdateRunner.DirectiveServicesAdapter(UpdateRunner runner)
           
 
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)
           
 void setCurrentIUUuid(UUID uuid)
           
private  UpdateRunner updateRunner()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

runner_

private UpdateRunner runner_

currentIUUuid_

private UUID currentIUUuid_
Constructor Detail

UpdateRunner.DirectiveServicesAdapter

public UpdateRunner.DirectiveServicesAdapter(UpdateRunner runner)
                                      throws InvocationTargetException,
                                             IllegalAccessException,
                                             NoSuchMethodException
Method Detail

setCurrentIUUuid

public void setCurrentIUUuid(UUID uuid)

run

public void run(DirectiveServices ds)
Specified by:
run in interface DirectiveServices

updateRunner

private UpdateRunner updateRunner()

log

public void log(String message)
Description copied from interface: DirectiveServices
Log the message.

Specified by:
log in interface DirectiveServices

log

public void log(String message,
                Throwable error)
Description copied from interface: DirectiveServices
Log the message with the error.

Specified by:
log in interface DirectiveServices

getConnection

public Connection getConnection()
                         throws DirectiveExecutionException
Description copied from interface: DirectiveServices
Provide a JDBC connection that is active in the current method context.

Specified by:
getConnection in interface DirectiveServices
Throws:
DirectiveExecutionException - if there is an error trying to obtain a connection reference

getPOM

public PersistentObjectManager getPOM()
                               throws DirectiveExecutionException
Description copied from interface: DirectiveServices
Provide the PersistentObjectManager from method context.

Specified by:
getPOM in interface DirectiveServices
Throws:
DirectiveExecutionException - if there is an error trying to obtain a POM reference

getSourceVersions

public ReleaseId[] getSourceVersions()
Description copied from interface: DirectiveServices
The release ids of assemblies installed in the database.

Specified by:
getSourceVersions in interface DirectiveServices

getTargetVersions

public ReleaseId[] getTargetVersions()
Description copied from interface: DirectiveServices
The release ids of assemblies installed on the target system.

Specified by:
getTargetVersions in interface DirectiveServices

getCurrentIncrementalUpdateUuid

public UUID getCurrentIncrementalUpdateUuid()
Description copied from interface: DirectiveServices
The UUID of the Incremental Update currently being executed.

Specified by:
getCurrentIncrementalUpdateUuid in interface DirectiveServices