|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.upgrade.util.InstallNonModeled
Used to execute all of the SQL scripts under the NonModeled directory. (tables, types, procedures, triggers and sequencers). The original need was to add the new procedures used in function-based indexing for uniqueness.
Field Summary | |
private static Connection |
connection_
|
private static String |
FILE_NAME_ALL
|
private static String |
FILE_NAME_PROCEDURES
|
private static String |
FILE_NAME_SEQUENCERS
|
private static String |
FILE_NAME_TABLES
|
private static String |
FILE_NAME_TRIGGERS
|
private static String |
FILE_NAME_TYPES
|
private static String |
REL_SQL_PATH_ALL
|
private static String |
REL_SQL_PATH_PROCEDURES
|
private static String |
REL_SQL_PATH_SEQUENCERS
|
private static String |
REL_SQL_PATH_TABLES
|
private static String |
REL_SQL_PATH_TRIGGERS
|
private static String |
REL_SQL_PATH_TYPES
|
Constructor Summary | |
InstallNonModeled(Connection connection)
The NonModeled items are additions to the schema. |
Method Summary | |
static String |
install()
Execute a master script file that makes calls to all the subdirectories. |
static String |
install(String PATH_AND_FILE_NAME)
Used to run any one of the scripts in the directories for Procedures, Sequencers, Tables, Triggers or Types. |
private static String |
install(String rel_sql_path,
String file_name)
Use the SQLScriptExecutor to execute a master script file that makes calls to all the subdirectories. |
static String |
installProcedures()
Execute a master script file that makes calls to all the Procedure scripts. |
static String |
installSequencers()
Execute a master script file that makes calls to all the Sequencers scripts. |
static String |
installTables()
Execute a master script file that makes calls to all the Tables scripts. |
static String |
installTriggers()
Execute a master script file that makes calls to all the Triggers scripts. |
static String |
installTypes()
Execute a master script file that makes calls to all the Types scripts. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String REL_SQL_PATH_ALL
private static final String REL_SQL_PATH_PROCEDURES
private static final String REL_SQL_PATH_SEQUENCERS
private static final String REL_SQL_PATH_TABLES
private static final String REL_SQL_PATH_TRIGGERS
private static final String REL_SQL_PATH_TYPES
private static final String FILE_NAME_ALL
private static final String FILE_NAME_PROCEDURES
private static final String FILE_NAME_SEQUENCERS
private static final String FILE_NAME_TABLES
private static final String FILE_NAME_TRIGGERS
private static final String FILE_NAME_TYPES
private static Connection connection_
Constructor Detail |
public InstallNonModeled(Connection connection)
connection
- A connection to the database.Method Detail |
public static String install() throws SQLScriptExecutor.ExecutionException
SQLScriptExecutor.ExecutionException
- If the attempt to execute failed.public static String install(String PATH_AND_FILE_NAME) throws SQLScriptExecutor.ExecutionException
PATH_AND_FILE_NAME
- The path appended with the separator, then the file name.
SQLScriptExecutor.ExecutionException
- If the attempt to execute failed.public static String installProcedures() throws SQLScriptExecutor.ExecutionException
SQLScriptExecutor.ExecutionException
- If the attempt to execute failed.public static String installSequencers() throws SQLScriptExecutor.ExecutionException
SQLScriptExecutor.ExecutionException
- If the attempt to execute failed.public static String installTables() throws SQLScriptExecutor.ExecutionException
SQLScriptExecutor.ExecutionException
- If the attempt to execute failed.public static String installTriggers() throws SQLScriptExecutor.ExecutionException
SQLScriptExecutor.ExecutionException
- If the attempt to execute failed.public static String installTypes() throws SQLScriptExecutor.ExecutionException
SQLScriptExecutor.ExecutionException
- If the attempt to execute failed.private static String install(String rel_sql_path, String file_name) throws SQLScriptExecutor.ExecutionException
rel_sql_path
- Is relative to the windchill\db\sql directory.file_name
- The file that is in that relative path directory.
SQLScriptExecutor.ExecutionException
- If the attempt to execute failed.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |