com.ptc.windchill.tools.ddl
Class DDLInstallGenerator

java.lang.Object
  extended bycom.ptc.windchill.util.packaging.processor.PackagingTraverser
      extended bycom.ptc.windchill.util.packaging.install.AbstractPackagingConsumer
          extended bycom.ptc.windchill.util.packaging.install.AbstractInstallParticipant
              extended bycom.ptc.windchill.tools.ddl.DDLInstallGenerator
All Implemented Interfaces:
ClassProcessor, ExecutableApp, InstallParticipant, ModuleProcessor, PackageProcessor, RegistryProcessor, Serializable, SubsystemProcessor

public class DDLInstallGenerator
extends AbstractInstallParticipant
implements Serializable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String ARTIFACT_DIR_SQL
           
private static String ARTIFACT_DIR_SQLSERVER
           
private static String BAT_EXECUTE
           
private static String BAT_EXTENSION
           
private static String BAT_PARAMS
           
private static String CLASSNAME
           
private static String DATA_STORE
           
static boolean DEBUG
           
private static DebugWriter LOG
           
private static String ORACLE_EXECUTE
           
private static WTProperties properties
           
private static String RESOURCE
           
private static String SCRIPT_EXTENSION
           
private static String SIMPLE_CLASSNAME
           
 
Fields inherited from class com.ptc.windchill.util.packaging.install.AbstractInstallParticipant
install_mode
 
Fields inherited from class com.ptc.windchill.util.packaging.install.AbstractPackagingConsumer
INSTALL_CONTEXT
 
Fields inherited from class com.ptc.windchill.util.packaging.processor.PackagingTraverser
PROCESS_3RD_PARTY, PROCESS_DEPS, PROCESS_MULTIPLE, PROCESS_NON_MODELED, RECURSE_DEPS
 
Constructor Summary
DDLInstallGenerator()
           
 
Method Summary
private  void buildInstallScript(String assembly_name, String module_name, String artifact, String extension, String executekey, String param)
           
private  void buildStructScript(String assembly_name, String module_name, String artifact, String extension, String executekey, String param)
           
protected  String getArtifactExtension()
          

Supported API: false
protected  String getConsumerName()
          

Supported API: false
private  void initializeInstallDDLFiles(String artifact, String extension)
           
protected  boolean loadCache()
          

Supported API: false
 void processModule(UnitIdentifier module_identifier)
          

Supported API: false
protected  void storeCache()
          

Supported API: false
 
Methods inherited from class com.ptc.windchill.util.packaging.install.AbstractInstallParticipant
installModule, unInstallModule
 
Methods inherited from class com.ptc.windchill.util.packaging.install.AbstractPackagingConsumer
getCacheArtifact, getContext, getUnitArtifact, initialize, initializeConfiguration, isCached, isInitialized, postProcess, processModule, setCached, setContext, setInitialized
 
Methods inherited from class com.ptc.windchill.util.packaging.processor.PackagingTraverser
argsOK, execute, getModuleIdentifier, isFile, isIncludedModule, isIncludedPackage, packageName, processClass, processClass, processDependency, processedModule, processFile, processModule, processModule, processPackage, processPackage, processRegistry, processSubsystem, processSubsystem, processTarget, processTargets, setClassProcessor, setModuleProcessor, setPackageProcessor, setRegistryProcessor, setSubsystemProcessor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ptc.windchill.util.packaging.install.InstallParticipant
initialize, postProcess
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

SCRIPT_EXTENSION

private static final String SCRIPT_EXTENSION
See Also:
Constant Field Values

BAT_EXTENSION

private static final String BAT_EXTENSION
See Also:
Constant Field Values

BAT_EXECUTE

private static final String BAT_EXECUTE
See Also:
Constant Field Values

ORACLE_EXECUTE

private static final String ORACLE_EXECUTE
See Also:
Constant Field Values

BAT_PARAMS

private static final String BAT_PARAMS
See Also:
Constant Field Values

ARTIFACT_DIR_SQL

private static final String ARTIFACT_DIR_SQL

ARTIFACT_DIR_SQLSERVER

private static final String ARTIFACT_DIR_SQLSERVER

SIMPLE_CLASSNAME

private static final String SIMPLE_CLASSNAME

DEBUG

public static final boolean DEBUG

LOG

private static final DebugWriter LOG

properties

private static WTProperties properties

DATA_STORE

private static final String DATA_STORE
Constructor Detail

DDLInstallGenerator

public DDLInstallGenerator()
Method Detail

getConsumerName

protected String getConsumerName()


Supported API: false

Specified by:
getConsumerName in class AbstractPackagingConsumer
Returns:
String

getArtifactExtension

protected String getArtifactExtension()


Supported API: false

Specified by:
getArtifactExtension in class AbstractPackagingConsumer
Returns:
String

loadCache

protected boolean loadCache()
                     throws WTException


Supported API: false

Specified by:
loadCache in class AbstractPackagingConsumer
Returns:
boolean
Throws:
WTException

storeCache

protected void storeCache()
                   throws WTException


Supported API: false

Specified by:
storeCache in class AbstractPackagingConsumer
Throws:
WTException

processModule

public void processModule(UnitIdentifier module_identifier)
                   throws WTException


Supported API: false

Specified by:
processModule in interface ModuleProcessor
Overrides:
processModule in class PackagingTraverser
Parameters:
module_identifier -
Throws:
WTException

buildInstallScript

private void buildInstallScript(String assembly_name,
                                String module_name,
                                String artifact,
                                String extension,
                                String executekey,
                                String param)
                         throws WTException
Throws:
WTException

initializeInstallDDLFiles

private void initializeInstallDDLFiles(String artifact,
                                       String extension)
                                throws WTException
Throws:
WTException

buildStructScript

private void buildStructScript(String assembly_name,
                               String module_name,
                               String artifact,
                               String extension,
                               String executekey,
                               String param)
                        throws WTException
Throws:
WTException