|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.upgrade.directives.ExecuteScript
This directive performs the task of executing an SQL script file located in >wt_home<\db\sql
>ExecuteScript relativeFileName="...." <The value assigned to relativeFileName is the SQL script file to be executed.
Field Summary | |
private static String |
CLASSNAME
|
private static boolean |
DEBUG
|
private static DebugWriter |
LOG
|
static String |
RELATIVE_SCRIPT_NAME
|
private String |
scriptText_
|
Constructor Summary | |
ExecuteScript()
Creates a new ExecuteScript object. |
Method Summary | |
void |
asDomOn(Element element)
Writes the directive as a DOM element according to the class documentation above. |
void |
execute(DirectiveServices directive_services)
This directive is executed by using the SQLScriptExecutor executeScript(String relative_path) to re-use code. |
void |
initializeFromDom(Element element)
Reads the DOM element into this directive according to the class documentation above. |
private String |
modifyScriptPath(String relative_path)
In case an IncrementalUpdate is written with backward slashes, this will convert them into forward slashes and can be executed on UNIX without any problems. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String CLASSNAME
private static final boolean DEBUG
private static final DebugWriter LOG
public static final String RELATIVE_SCRIPT_NAME
private String scriptText_
Constructor Detail |
public ExecuteScript()
Method Detail |
public void execute(DirectiveServices directive_services) throws DirectiveExecutionException
execute
in interface UpdateDirective
directive_services
- Is not used, but is required by the abstract UpdateDirective.
DirectiveExecutionException
- Is a re-throw of a SQLScriptExecutor.ExecutionException.public void initializeFromDom(Element element) throws DirectiveIOException
initializeFromDom
in interface UpdateDirective
element
- Is an element in the DOM tree.
DirectiveIOException
- If the element is null.public void asDomOn(Element element) throws DirectiveIOException
asDomOn
in interface UpdateDirective
element
- Is an element in the DOM tree.
DirectiveIOException
- Is not used, but is required by the abstract UpdateDirective.private String modifyScriptPath(String relative_path)
relative_path
- Defined by this class's constant RELATIVE_SCRIPT_NAME.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |