|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.upgrade.modeldiff.AddConstraints
Nested Class Summary | |
class |
AddConstraints.ExecutionException
|
private class |
AddConstraints.RunSQLPlus
Run the SQLPlus on a separate thread so that if there is an error, and execution hangs, a 'join(milliseconds)' will timeout. |
Constructor Summary | |
AddConstraints(CancellationMonitor cancellation_monitor)
Used to support the use of the UpgradeTool GUI. |
Method Summary | |
private void |
cleanup()
|
private void |
createInvalidObjectsSpool()
|
(package private) PrintWriter |
createPrintWriter(String path_and_file_name)
|
private File |
createScriptToCall(String sql_to_execute)
Buffers the constructor's argument in a wt.temp file and executes the file using SQLPlus. |
private void |
executeAddConstraints(String[] args)
|
boolean |
executeFromGui()
A GUI initiates execution using this class method. |
private int |
executeSqlScriptFileToStream(File script_file,
int activityAndSubjectCountMax,
Vector guiDisplayedItems,
Vector guiDisplayedSubjectsCount)
Buffers the constructor's argument in a wt.temp file and executes the file using SQLPlus. |
private void |
getDBAccessCredentials()
Parse the DSProperties for the USER/PASSWORD/SERVICE information, and maybe a connectString. |
(package private) void |
init()
|
private void |
performLeadingActivities1()
|
private void |
performLeadingActivities2()
|
private void |
progressBarTest(int i,
String str)
|
private void |
reAddNonModeledPackages()
|
private int |
readGuiDisplayedItems(String path_and_file_name,
Vector guiDisplayedItems,
Vector guiDisplayedSubjectsCount)
|
private void |
reBuildReCompileInvalidObjects()
|
void |
setListener(AddConstraintsListener x)
Allows execution to know minimal details about the user. |
private void |
testGuiForACancel()
|
private void |
updateGuiAsCompleted(int number_of_sql)
|
private void |
updateGuiWithSchemaResults()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Date dateSQL
private SimpleDateFormat dateFormatter
private String dateSQLString
private CancellationMonitor cancellationMonitor_
private AddConstraintsListener addConstraintsListener_
private boolean blockExecutionWhileDecidingCancel_
private boolean isCancelable_
private Vector uniqueGuiDisplayedItems_
private Vector uniqueGuiDisplayedSubjectsCount_
private Vector notNullGuiDisplayedItems_
private Vector notNullGuiDisplayedSubjectsCount_
private int prePlannedUniqueActivityCountMax_
private int prePlannedNotNullActivityCountMax_
private int prePlannedTrailingActivityCountMax_
private int prePlannedActivityCountMax_
private int uniqueActivityAndSubjectCountMax_
private int notNullActivityAndSubjectCountMax_
private int subjectCountMax_
private String nextActivity_
private int leadingActivitiesSoFar_
private int leadingActivities1_
private int leadingActivities2_
private int leadingActivities_
private int otherActivities_
private int completed1_
private int started1_
private int completed2_
private int started2_
private int completed3_
private int started3_
private SchemaResults schemaResults_
private String logInString_
private CompareSchema compareSchema_
private boolean isARunSQLPlusError_
private long inactivityTimeout_
private File script1File_
private File script2File_
private BufferedLineReader bufferedLineReader_
private boolean test_
private boolean fakeRerun_
Constructor Detail |
public AddConstraints(CancellationMonitor cancellation_monitor)
cancellation_monitor
- Used to detect the user canceling all execution.Method Detail |
public void setListener(AddConstraintsListener x)
x
- AddConstraintsListener A contract for the user and this code to interact.void init()
public boolean executeFromGui() throws AddConstraintsException, Throwable
AddConstraintsException
- If a code error was detected.
Throwable
- If there is an unknown exception.private void executeAddConstraints(String[] args) throws AddConstraintsTestException, AddConstraintsException, CancelException
AddConstraintsTestException
AddConstraintsException
CancelException
private void progressBarTest(int i, String str)
private void performLeadingActivities1() throws AddConstraintsTestException, AddConstraintsException, CancelException
AddConstraintsTestException
AddConstraintsException
CancelException
private void performLeadingActivities2() throws AddConstraintsException, CancelException
AddConstraintsException
CancelException
private void reAddNonModeledPackages() throws AddConstraintsException, CancelException
AddConstraintsException
CancelException
private void reBuildReCompileInvalidObjects() throws AddConstraintsException, CancelException
AddConstraintsException
CancelException
private void createInvalidObjectsSpool() throws AddConstraintsException, CancelException
AddConstraintsException
CancelException
private int readGuiDisplayedItems(String path_and_file_name, Vector guiDisplayedItems, Vector guiDisplayedSubjectsCount) throws AddConstraintsException
AddConstraintsException
PrintWriter createPrintWriter(String path_and_file_name) throws AddConstraintsException
AddConstraintsException
private void cleanup()
private void updateGuiAsCompleted(int number_of_sql) throws AddConstraintsException
AddConstraintsException
private void testGuiForACancel() throws AddConstraintsException, CancelException
AddConstraintsException
CancelException
private void updateGuiWithSchemaResults() throws AddConstraintsException
AddConstraintsException
private int executeSqlScriptFileToStream(File script_file, int activityAndSubjectCountMax, Vector guiDisplayedItems, Vector guiDisplayedSubjectsCount) throws AddConstraintsException, CancelException
script_file
- Approximately used for:
" sqlplus user/password&064;system &064;script_file ".
AddConstraintsException
- If the SQL could not be executed.
CancelException
- If the user canceled during execution.private File createScriptToCall(String sql_to_execute) throws AddConstraintsException
AddConstraintsException
- If the SQL could not be executed.
CancelException
- If the user canceled during execution.private void getDBAccessCredentials() throws IOException
IOException
- If processing can not interpret or parse the strings in the db.properties file.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |