|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.upgrade.modeldiff.Output
Manages the output to the Report-Spool-Script files
Constructor Summary | |
(package private) |
Output(CompareSchema compareSchema)
|
Method Summary | |
private void |
AddStandardScriptBeginning(PrintWriter script,
String path_and_file_name)
|
(package private) void |
beginTheReport(CompareSchemaReportXml report_xml,
String path_and_file)
The report HTML file. |
(package private) int |
beginTheScript0Work(PrintWriter script)
Adds the StartOf, Spooling, and Dates to the Script0Work file. |
(package private) void |
beginTheScript1Work(PrintWriter script)
Adds the StartOf, Spooling, and Dates to the Script1Work file. |
private void |
beginTheSpool(PrintWriter script,
String spool_path_and_file,
String creator_name)
Adds Spooling and Dates to the script file. |
private void |
closeIfOpen(PrintWriter print_writer)
|
private File |
createDisabledSqlDuplicate(boolean errored,
File file_with_dot_extension)
Adds a REM in front of each line and adds a _temp to the file name. |
(package private) PrintWriter |
createPrintWriter(String path_and_file_name)
Obtain access to a file in order to write (the user must flush() and close()). |
(package private) int |
createScript2Work(PrintWriter script)
|
(package private) void |
disableContentsOfTheScripts(boolean errored,
PrintWriter script0Work,
PrintWriter script1Test,
PrintWriter script1Debug,
PrintWriter script1Work,
PrintWriter script2Test,
PrintWriter script2Debug,
PrintWriter script2Work)
Called when an error is experienced by CompareSchema. |
private void |
disableSqlFile(boolean errored,
String path_and_old_file_name)
|
(package private) void |
endTheScript0Work(PrintWriter script,
String path_and_file,
String spool_path_and_file)
Adds the final entries to the Script0Work file. |
(package private) void |
endTheScript1Work(PrintWriter script,
String path_and_file,
String spool_path_and_file)
Adds the final entries to the Script0Work file. |
private void |
endTheSpool(PrintWriter script,
String spool_path_and_file)
Ends the Spooling to the script file. |
(package private) void |
setFormat1ColumnName(int x)
|
(package private) void |
setFormat1IndexName(int x)
|
(package private) void |
setFormat1TableName(int x)
|
private void |
setFormat2ColumnName(int x)
|
private void |
setFormat2TableName(int x)
|
(package private) void |
setInitialValues(Vector initialValues)
|
(package private) void |
setSqlUniquenessColumns(Vector sqlUniquenessColumns)
|
(package private) void |
setSqlUniquenessIndices(Vector sqlUniquenessIndices)
|
(package private) void |
setSqlUniquenessTables(Vector sqlUniquenessTables)
|
(package private) void |
setTheHistory(Vector history)
|
private void |
spoolCreatedOnCreatedBy(PrintWriter script,
String spool_path_and_file,
String creator_name)
|
private void |
sqlSettingsOff(PrintWriter script)
The SQL sessions need these settings to not produce extra output. |
private void |
sqlSettingsOn(PrintWriter script)
A user that re-uses the command window to open a manual SQL*Plus session needs reasonable settings. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private String reportHtmlName_
private String dateSQLString_
private Vector sqlUniquenessTables_
private Vector sqlUniquenessColumns_
private Vector sqlUniquenessIndices_
private int format1IndexName_
private int format1TableName_
private int format1ColumnName_
private int format2TableName_
private int format2ColumnName_
private Vector sqlNullTests_
private Vector initialValues_
private String SCRIPT0_PREFIX
private String SCRIPT1_PREFIX
private String SCRIPT2_PREFIX
private String SCRIPT0_WORK
private String SCRIPT1_WORK
private String SCRIPT2_WORK
private String REPORT0_XML_LONG
private String SCRIPT0_WORK_LONG
private String SCRIPT1_WORK_LONG
private String SCRIPT2_WORK_LONG
private String SPOOL0_WORK_LONG
private String SPOOL1_WORK_LONG
private String SPOOL2_WORK_LONG
private String REM_GUI_DISPLAY_As
private String REM_GUI_DISPLAY_Ss
private String REM_END_STREAM
private String UNIQUE_TEMP_COUNT
private String UNIQUE_TEMP_COLUMN
private String NOT_NULL_TEMP_COUNT
private String UNIQUE_TEST_OUTPUT
private String NOT_NULL_TEST_OUTPUT
private Vector history_
private final String disabled_str1_
private final String disabled_str2_
private final String disabled_str3_
private CompareSchema compareSchema_
Constructor Detail |
Output(CompareSchema compareSchema)
Method Detail |
PrintWriter createPrintWriter(String path_and_file_name) throws CompareSchemaException
path_and_file_name
- Write to this file.
CompareSchemaException
void setTheHistory(Vector history)
void beginTheReport(CompareSchemaReportXml report_xml, String path_and_file) throws CompareSchemaException
CompareSchemaException
private void beginTheSpool(PrintWriter script, String spool_path_and_file, String creator_name)
script
- The generated SQL script.private void spoolCreatedOnCreatedBy(PrintWriter script, String spool_path_and_file, String creator_name)
private void endTheSpool(PrintWriter script, String spool_path_and_file)
script
- The generated SQL script.private void AddStandardScriptBeginning(PrintWriter script, String path_and_file_name)
int beginTheScript0Work(PrintWriter script)
void endTheScript0Work(PrintWriter script, String path_and_file, String spool_path_and_file)
void beginTheScript1Work(PrintWriter script)
void endTheScript1Work(PrintWriter script, String path_and_file, String spool_path_and_file)
void setInitialValues(Vector initialValues)
int createScript2Work(PrintWriter script)
void setSqlUniquenessIndices(Vector sqlUniquenessIndices)
void setSqlUniquenessTables(Vector sqlUniquenessTables)
void setSqlUniquenessColumns(Vector sqlUniquenessColumns)
void setFormat1IndexName(int x)
void setFormat1TableName(int x)
void setFormat1ColumnName(int x)
private void setFormat2TableName(int x)
private void setFormat2ColumnName(int x)
private void sqlSettingsOff(PrintWriter script)
script
- Access to an SQL file.private void sqlSettingsOn(PrintWriter script)
script
- Access to an SQL file.void disableContentsOfTheScripts(boolean errored, PrintWriter script0Work, PrintWriter script1Test, PrintWriter script1Debug, PrintWriter script1Work, PrintWriter script2Test, PrintWriter script2Debug, PrintWriter script2Work)
private void closeIfOpen(PrintWriter print_writer)
private void disableSqlFile(boolean errored, String path_and_old_file_name)
private File createDisabledSqlDuplicate(boolean errored, File file_with_dot_extension) throws CompareSchemaException
CompareSchemaException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |