com.ptc.windchill.upgrade.directives.dataload
Class LoadDataFile.DataOutputter
java.lang.Object
com.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
directiveServices_
private DirectiveServices directiveServices_
LoadDataFile.DataOutputter
public LoadDataFile.DataOutputter(DirectiveServices directive_services)
- Creates a new DataOutputter object.
- Parameters:
directive_services
-
- Throws:
IllegalArgumentException
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.