com.ptc.windchill.upgrade.directives.dataload
Class LoadDataFile.DataOutputter

java.lang.Object
  extended bycom.ptc.windchill.upgrade.directives.dataload.LoadDataFile.DataOutputter
Enclosing class:
LoadDataFile

private final class LoadDataFile.DataOutputter
extends Object

Encapsulates the conditional writing of the data records to the data file. Also, this inner class is used as a technique for not having to pass around the directive services to four or five methods. This is known as "Replace Method with Method Object" in Fowler's Refactoring book.


Field Summary
private  DirectiveServices directiveServices_
           
 
Constructor Summary
LoadDataFile.DataOutputter(DirectiveServices directive_services)
          Creates a new DataOutputter object.
 
Method Summary
private  DirectiveServices getDirectiveServices()
           
 void outputDataAsNecessary()
          Loads the new data that has been added since the release the customer was on.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

directiveServices_

private DirectiveServices directiveServices_
Constructor Detail

LoadDataFile.DataOutputter

public LoadDataFile.DataOutputter(DirectiveServices directive_services)
Creates a new DataOutputter object.

Parameters:
directive_services -
Throws:
IllegalArgumentException
Method Detail

getDirectiveServices

private DirectiveServices getDirectiveServices()

outputDataAsNecessary

public final void outputDataAsNecessary()
                                 throws DirectiveExecutionException
Loads the new data that has been added since the release the customer was on.

Throws:
DirectiveExecutionException - If their are problems loading wt.properties or problems with the files, or importing the data.