|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.upgrade.modeldiff.UpgradeSchema
Nested Class Summary | |
class |
UpgradeSchema.ExecutionException
|
private class |
UpgradeSchema.RunSQLPlus
Run the SQLPlus on a separate thread so that if there is an error, and execution hangs, a 'join(milliseconds)' will timeout. |
Field Summary | |
private boolean |
blockExecutionWhileDecidingCancel_
|
private BufferedLineReader |
bufferedLineReader_
|
private CancellationMonitor |
cancellationMonitor_
|
private CompareSchema |
compareSchema_
|
private int |
completed_
|
private SimpleDateFormat |
dateFormatter
|
private Date |
dateSQL
|
private String |
dateSQLString
|
private boolean |
fakeRerun_
|
private Vector |
guiDisplayedItems_
|
private Vector |
guiDisplayedSubjectsCount_
|
private long |
inactivityTimeout_
|
private boolean |
isARunSQLPlusError_
|
private boolean |
isCancelable_
|
private int |
leadingActivities_
|
private String |
logInString_
|
private String |
nextActivity_
|
private int |
otherActivities_
|
private int |
prePlannedActivityCountMax_
|
private SchemaResults |
schemaResults_
|
private int |
started_
|
private int |
subjectCountMax_
|
private boolean |
test_
|
private int |
upgradeActivityAndSubjectCountMax_
|
private UpgradeSchemaListener |
upgradeSchemaListener_
|
Constructor Summary | |
UpgradeSchema(CancellationMonitor cancellation_monitor)
Used to support the use of the UpgradeTool GUI. |
Method Summary | |
private void |
cleanup()
|
private File |
createScriptToCall(String sql_to_execute)
|
boolean |
executeFromGui()
A GUI initiates execution using this class method. |
private void |
executeSqlScriptFileToStream(File script_file)
Buffers the constructor's argument in a wt.temp file and executes the file using SQLPlus. |
private void |
executeSqlScriptFileToStream2(File script_file)
Buffers the constructor's argument in a wt.temp file and executes the file using SQLPlus. |
private void |
executeUpgradeSchema(String[] args)
|
private void |
getDBAccessCredentials()
Parse the DSProperties for the USER/PASSWORD/SERVICE information, and maybe a connectString. |
(package private) void |
init()
|
private File |
performLeadingActivities()
|
private void |
progressBarTest(int i,
String str)
|
private int |
readGuiDisplayedItems()
|
void |
setListener(UpgradeSchemaListener 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 UpgradeSchemaListener upgradeSchemaListener_
private boolean blockExecutionWhileDecidingCancel_
private boolean isCancelable_
private Vector guiDisplayedItems_
private Vector guiDisplayedSubjectsCount_
private int prePlannedActivityCountMax_
private int upgradeActivityAndSubjectCountMax_
private int subjectCountMax_
private String nextActivity_
private int leadingActivities_
private int otherActivities_
private int completed_
private int started_
private SchemaResults schemaResults_
private String logInString_
private CompareSchema compareSchema_
private boolean isARunSQLPlusError_
private long inactivityTimeout_
private BufferedLineReader bufferedLineReader_
private boolean test_
private boolean fakeRerun_
Constructor Detail |
public UpgradeSchema(CancellationMonitor cancellation_monitor)
cancellation_monitor
- Used to detect the user canceling all execution.Method Detail |
public void setListener(UpgradeSchemaListener x)
x
- UpgradeSchemaListener A contract for the user and this code to interact.void init()
public boolean executeFromGui() throws UpgradeSchemaException, Throwable
UpgradeSchemaException
- If a code error was detected.
Throwable
- If there is an unknown exception.private void executeUpgradeSchema(String[] args) throws UpgradeSchemaException, CancelException
UpgradeSchemaException
CancelException
private void progressBarTest(int i, String str)
private File performLeadingActivities() throws UpgradeSchemaException, CancelException
UpgradeSchemaException
CancelException
private int readGuiDisplayedItems() throws UpgradeSchemaException
UpgradeSchemaException
private void cleanup()
private void updateGuiAsCompleted(int number_of_sql) throws UpgradeSchemaException
UpgradeSchemaException
private void testGuiForACancel() throws UpgradeSchemaException, CancelException
UpgradeSchemaException
CancelException
private void updateGuiWithSchemaResults() throws UpgradeSchemaException
UpgradeSchemaException
private void executeSqlScriptFileToStream(File script_file) throws UpgradeSchemaException, CancelException
script_file
- Approximately used for:
" sqlplus user/password&064;system &064;script_file ".
UpgradeSchemaException
- If the SQL could not be executed.
CancelException
- If the user canceled during execution.private void executeSqlScriptFileToStream2(File script_file) throws UpgradeSchemaException, CancelException
script_file
- Approximately used for:
" sqlplus user/password&064;system &064;script_file ".
UpgradeSchemaException
- If the SQL could not be executed.
CancelException
- If the user canceled during execution.private File createScriptToCall(String sql_to_execute) throws UpgradeSchemaException
UpgradeSchemaException
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 |