wt.tools.generation.sql
Class OracleScriptGenerator

java.lang.Object
  extended bywt.tools.generation.sql.ScriptGenerator
      extended bywt.tools.generation.sql.OracleScriptGenerator
Direct Known Subclasses:
OracleStandardScriptGenerator

public class OracleScriptGenerator
extends ScriptGenerator

OracleScriptGenerator creates scripts containing DDL statements


Field Summary
private static String ARTIFACT_DIR
           
protected static String SCRIPT_EXTENSION
           
private static char SEPARATOR
           
private  OracleSQLGenerator sqlGenerator
           
 
Fields inherited from class wt.tools.generation.sql.ScriptGenerator
ARRAY, BUILD_USAGE, FK, INDEX, properties, SEQUENCE, STRUCT, TABLE, TRIGGER, VIEW
 
Constructor Summary
OracleScriptGenerator()
           
 
Method Summary
protected  void buildModuleScriptFiles(String a_assemblyName, String a_moduleName, boolean a_isMake, String a_schemaObjectType, String a_javaPackage)
           
protected  void buildModuleScriptFilesforStruct(String a_assemblyName, String a_moduleName, boolean a_isMake, String a_javaPackage, String a_structFileName, long scriptLevel)
           
 void buildScriptforTable(String a_className, String a_moduleName, String a_assemblyName, String artifact)
           
protected  void createMakeDropFiles(InstalledModuleArtifact dir, String a_schemaObjectType)
           
 String getArtifactDir()
           
protected  InstalledModuleArtifact getFile(String fullModuleName, String a_javaPackage, boolean a_isMake, String a_schemaObjectType)
           
protected  SQLGenerator getSQLGenerator()
           
protected  void putInParentMakeDropFile(InstalledModuleArtifact a_dir, String a_schemaObjectType)
           
protected  void putScriptCallInFile(String fullModuleName, String a_javaPackage, boolean a_isMake, String a_schemaObjectType, String a_scriptName, boolean containsUserName)
           
 
Methods inherited from class wt.tools.generation.sql.ScriptGenerator
buildModuleScriptName, buildPathName, buildScript, buildScriptforArray, buildScriptforFKConstraint, buildScriptforSequence, buildScriptforStruct, buildScriptforTriggerConstraint, buildScriptName, createDirectories, createMakeDropFiles, getFile, putInFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCRIPT_EXTENSION

protected static final String SCRIPT_EXTENSION
See Also:
Constant Field Values

SEPARATOR

private static final char SEPARATOR
See Also:
Constant Field Values

ARTIFACT_DIR

private static final String ARTIFACT_DIR

sqlGenerator

private OracleSQLGenerator sqlGenerator
Constructor Detail

OracleScriptGenerator

public OracleScriptGenerator()
Method Detail

getSQLGenerator

protected SQLGenerator getSQLGenerator()
Specified by:
getSQLGenerator in class ScriptGenerator

getArtifactDir

public String getArtifactDir()
Specified by:
getArtifactDir in class ScriptGenerator

buildScriptforTable

public void buildScriptforTable(String a_className,
                                String a_moduleName,
                                String a_assemblyName,
                                String artifact)
                         throws WTException,
                                IOException
Overrides:
buildScriptforTable in class ScriptGenerator
Throws:
WTException
IOException

putInParentMakeDropFile

protected void putInParentMakeDropFile(InstalledModuleArtifact a_dir,
                                       String a_schemaObjectType)
                                throws IOException
Specified by:
putInParentMakeDropFile in class ScriptGenerator
Throws:
IOException

putScriptCallInFile

protected void putScriptCallInFile(String fullModuleName,
                                   String a_javaPackage,
                                   boolean a_isMake,
                                   String a_schemaObjectType,
                                   String a_scriptName,
                                   boolean containsUserName)
                            throws IOException
Specified by:
putScriptCallInFile in class ScriptGenerator
Throws:
IOException

getFile

protected InstalledModuleArtifact getFile(String fullModuleName,
                                          String a_javaPackage,
                                          boolean a_isMake,
                                          String a_schemaObjectType)
Specified by:
getFile in class ScriptGenerator

createMakeDropFiles

protected void createMakeDropFiles(InstalledModuleArtifact dir,
                                   String a_schemaObjectType)
                            throws IOException
Specified by:
createMakeDropFiles in class ScriptGenerator
Throws:
IOException

buildModuleScriptFiles

protected void buildModuleScriptFiles(String a_assemblyName,
                                      String a_moduleName,
                                      boolean a_isMake,
                                      String a_schemaObjectType,
                                      String a_javaPackage)
Specified by:
buildModuleScriptFiles in class ScriptGenerator

buildModuleScriptFilesforStruct

protected void buildModuleScriptFilesforStruct(String a_assemblyName,
                                               String a_moduleName,
                                               boolean a_isMake,
                                               String a_javaPackage,
                                               String a_structFileName,
                                               long scriptLevel)
Overrides:
buildModuleScriptFilesforStruct in class ScriptGenerator