Java Doc for LoaderGenerator.java in  » Database-JDBC-Connection-Pool » octopus » org » webdocwf » util » loader » generator » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database JDBC Connection Pool » octopus » org.webdocwf.util.loader.generator 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.webdocwf.util.loader.generator.LoaderGenerator

LoaderGenerator
public class LoaderGenerator (Code)
LoaderGenerator class dinamicly generates the xml files (LoaderJob.xml and ImportDefinition.xml) from the input data and source database. Also LoaderGenerator creates SQL statements for building and loading an SQL target database.
author:
   Radoslav Dutina
version:
   1.0



Constructor Summary
public  LoaderGenerator(String sourceType, String sourceDataBase, String valueMode, String generatorOutput, String sourceDriverName, String targetDriverName, String targetDataBase, String targetType, String sourceUser, String sourcePassword, String targetUser, String targetPassword, String domlPath, String packageName, String generateDropTableStmt, String generateDropIntegrityStmt, String generateCreateTableStmt, String generateCreatePKStmt, String generateCreateFKStmt, String generateCreateIndexStmt, String generateSqlForAllVendors, String generateXml, String generateDoml, String fullMode, String includeTableList, String confJarStructure)
     Construct object LoaderGenerator with associated parameters.
Parameters:
  sourceType - defines the type of the source data.
Parameters:
  targetType - defines the type of the target data.
Parameters:
  sourceDriverName - is driver of defined source database.
Parameters:
  targetDriverName - is driver of defined target database.
Parameters:
  sourceDataBase - defines the place where you're put the database tables.
Parameters:
  targetDataBase - defines the place where the target database tables are.
Parameters:
  valueMode - defines the difference from overwrite and update attribute.Default valueMode is Overwrite.
Parameters:
  generatorOutput - is optional.
public  LoaderGenerator(String sourceType, String sourceDataBase, String valueMode, String generatorOutput, String sourceDriverName, String targetDriverName, String targetDataBase, String targetType, String sourceUser, String sourcePassword, String targetUser, String targetPassword, String domlPath, String packageName, String generateDropTableStmt, String generateDropIntegrityStmt, String generateCreateTableStmt, String generateCreatePKStmt, String generateCreateFKStmt, String generateCreateIndexStmt, String generateSqlForAllVendors, String generateXml, String generateDoml, String fullMode, String restoreMode, String includeTableList, String confJarStructure)
     Construct object LoaderGenerator with associated parameters.
Parameters:
  sourceType - defines the type of the source data.
Parameters:
  targetType - defines the type of the target data.
Parameters:
  sourceDriverName - is driver of defined source database.
Parameters:
  targetDriverName - is driver of defined target database.
Parameters:
  sourceDataBase - defines the place where you're put the database tables.
Parameters:
  targetDataBase - defines the place where the target database tables are.
Parameters:
  valueMode - defines the difference from overwrite and update attribute.Default valueMode is Overwrite.
Parameters:
  generatorOutput - is optional.
public  LoaderGenerator(String sourceType, String sourceDataBase, String valueMode, String generatorOutput, String sourceDriverName, String targetDriverName, String targetDataBase, String targetType, String sourceUser, String sourcePassword, String targetUser, String targetPassword, String domlPath, String packageName, String generateDropTableStmt, String generateDropIntegrityStmt, String generateCreateTableStmt, String generateCreatePKStmt, String generateCreateFKStmt, String generateCreateIndexStmt, String generateSqlForAllVendors, String generateXml, String generateDoml, String fullMode, String restoreMode, String includeTableList, String confJarStructure, String logMode, String logDirName, String logFileName)
     Construct object LoaderGenerator with associated parameters.
Parameters:
  sourceType - defines the type of the source data.
Parameters:
  targetType - defines the type of the target data.
Parameters:
  sourceDriverName - is driver of defined source database.
Parameters:
  targetDriverName - is driver of defined target database.
Parameters:
  sourceDataBase - defines the place where you're put the database tables.
Parameters:
  targetDataBase - defines the place where the target database tables are.
Parameters:
  valueMode - defines the difference from overwrite and update attribute.Default valueMode is Overwrite.
Parameters:
  generatorOutput - is optional.
public  LoaderGenerator(String sourceDataBase, String targetDataBase, String sourceType, String targetType)
     Public constructor of LoaderGenerator class.
public  LoaderGenerator(String sourceDataBase, String targetDataBase, String sourceType, String targetType, String confJarStructure)
     Public constructor of LoaderGenerator class.

Method Summary
public  voidgenerate()
     Method generate is main method in class LoaderGenerator.
public  StringgetConfJarStructure()
    
public  StringgetDomlPath()
    
public  booleangetFullMode()
    
public  booleangetGenerateCreateFKStmt()
    
public  booleangetGenerateCreateIndexStmt()
    
public  booleangetGenerateCreatePKStmt()
    
public  booleangetGenerateCreateTableStmt()
    
public  booleangetGenerateDoml()
    
public  booleangetGenerateDropIntegrityStmt()
    
public  booleangetGenerateDropTableStmt()
    
public  booleangetGenerateSQL()
    
public  booleangetGenerateSqlForAllVendors()
    
public  booleangetGenerateXml()
    
public  StringgetGeneratorOutput()
    
public  StringgetIncludeTableList()
    
public  StringgetLogMode()
    
public  StringgetPackageName()
    
public  StringgetRestoreMode()
    
public  StringgetSourceDataBase()
    
public  StringgetSourceDriverName()
    
public  StringgetSourcePassword()
    
public  StringgetSourceType()
    
public  StringgetSourceUser()
    
public  StringgetStrLogDirName()
    
public  StringgetStrLogFileName()
    
public  StringgetTargetDataBase()
    
public  StringgetTargetDriverName()
    
public  StringgetTargetPassword()
    
public  StringgetTargetType()
    
public  StringgetTargetUser()
    
public  StringgetValueMode()
    
public  StringinputToString()
    
public static  voidmain(String args)
     Main method controls parameters, it they are OK starts load method, but if they aren't makes alert.
Parameters:
  args - represents the input parametersUsage: java org.webdocwf.util.loader.generator.Generator [options]Options:-st sourceType, defines the type of the source database.-tt targetType, defines the type of the target database.-sdn sourceDriverName, defines the driver of defined source database.-tdn targetDriverName, defines the driver of defined target database.-sdb sourceDataBase, defines the place where you're put the source database tables.-tdb targetDataBase, defines the place where you're put the target database tables.-m valueMode, defines the difference from overwrite and update attribute.
static  voidprintUsage()
    
public  voidsetConfJarStructure(String confJarStructure)
    
public  voidsetDomlPath(String domlPath)
    
public  voidsetFullMode(boolean fullMode)
    
public  voidsetGenerateCreateFKStmt(boolean generateCreateFKStmt)
    
public  voidsetGenerateCreateIndexStmt(boolean generateCreateIndexStmt)
    
public  voidsetGenerateCreatePKStmt(boolean generateCreatePKStmt)
    
public  voidsetGenerateCreateTableStmt(boolean generateCreateTableStmt)
    
public  voidsetGenerateDoml(boolean generateDoml)
    
public  voidsetGenerateDropIntegrityStmt(boolean generateDropIntegrityStmt)
    
public  voidsetGenerateDropTableStmt(boolean generateDropTableStmt)
    
public  voidsetGenerateSqlForAllVendors(boolean generateSqlForAllVendors)
    
public  voidsetGenerateXml(boolean generateXml)
    
public  voidsetGeneratorOutput(String generatorOutput)
    
public  voidsetIncludeTableList(String includeTableList)
    
public  voidsetLogMode(String logMode)
    
public  voidsetPackageName(String packageName)
    
public  voidsetRestoreMode(String restoreMode)
    
public  voidsetSourceDataBase(String sourceDataBase)
    
public  voidsetSourceDriverName(String sourceDriverName)
    
public  voidsetSourcePassword(String sourcePassword)
    
public  voidsetSourceType(String sourceType)
    
public  voidsetSourceUser(String sourceUser)
    
public  voidsetStrLogDirName(String strLogDirName)
    
public  voidsetStrLogFileName(String strLogFileName)
    
public  voidsetTargetDataBase(String targetDataBase)
    
public  voidsetTargetDriverName(String targetDriverName)
    
public  voidsetTargetPassword(String targetPassword)
    
public  voidsetTargetType(String targetType)
    
public  voidsetTargetUser(String targetUser)
    
public  voidsetValueMode(String valueMode)
    


Constructor Detail
LoaderGenerator
public LoaderGenerator(String sourceType, String sourceDataBase, String valueMode, String generatorOutput, String sourceDriverName, String targetDriverName, String targetDataBase, String targetType, String sourceUser, String sourcePassword, String targetUser, String targetPassword, String domlPath, String packageName, String generateDropTableStmt, String generateDropIntegrityStmt, String generateCreateTableStmt, String generateCreatePKStmt, String generateCreateFKStmt, String generateCreateIndexStmt, String generateSqlForAllVendors, String generateXml, String generateDoml, String fullMode, String includeTableList, String confJarStructure) throws LoaderException(Code)
Construct object LoaderGenerator with associated parameters.
Parameters:
  sourceType - defines the type of the source data.
Parameters:
  targetType - defines the type of the target data.
Parameters:
  sourceDriverName - is driver of defined source database.
Parameters:
  targetDriverName - is driver of defined target database.
Parameters:
  sourceDataBase - defines the place where you're put the database tables.
Parameters:
  targetDataBase - defines the place where the target database tables are.
Parameters:
  valueMode - defines the difference from overwrite and update attribute.Default valueMode is Overwrite.
Parameters:
  generatorOutput - is optional. That represents the directory, where theOctopus place created files. If this argument don't exists, Octopus placecreated files in to current directory!
Parameters:
  sourceUser - defines the user of the source database.
Parameters:
  sourcePassword - defines user password for the source database.
Parameters:
  targetUser - defines the user of the target database.
Parameters:
  targetPassword - defines user password for the target database.
Parameters:
  domlPath - defines if the doml file exists. Default value is falseall, application generates xml, sql and doml files as ouput files. If the generateDoc has valuedoml, application generates only the doml file, and if generateDoc has the value wdoml, applicationgenerates xml and sql files.
Parameters:
  packageName - defines the package name for the generated doml file.
Parameters:
  generateDropTableStmt - defines if you want to generate only Sql statement for DROP TABLE
Parameters:
  generateCreateTableStmt - defines if you want to generate only Sql statement for CREATE TABLE
Parameters:
  generateCreatePKStmt - defines if you want to generate only Sql statement for ALTER TABLE
Parameters:
  generateCreateFKStmt - defines if you want to generate only Sql statement for ALTER TABLE
Parameters:
  generateCreateIndexStmt - defines if you want to generate only Sql statement for ALTER TABLE
Parameters:
  generateSqlForAllVendors - defines if you want to generate Sql statements for all nameddatabase vendors
Parameters:
  generateXml - defines if you want to generate xml file as output files
Parameters:
  generateDoml - defines if you want to generate doml file as output file
Parameters:
  fullMode - defines in which mode you want to generate xml files.
Parameters:
  includeTableList - defines the list of tables which you want to include intoGenerator process
Parameters:
  confJarStructure - defines the structure of jar file in which are conffiles placed
throws:
  LoaderException -



LoaderGenerator
public LoaderGenerator(String sourceType, String sourceDataBase, String valueMode, String generatorOutput, String sourceDriverName, String targetDriverName, String targetDataBase, String targetType, String sourceUser, String sourcePassword, String targetUser, String targetPassword, String domlPath, String packageName, String generateDropTableStmt, String generateDropIntegrityStmt, String generateCreateTableStmt, String generateCreatePKStmt, String generateCreateFKStmt, String generateCreateIndexStmt, String generateSqlForAllVendors, String generateXml, String generateDoml, String fullMode, String restoreMode, String includeTableList, String confJarStructure) throws LoaderException(Code)
Construct object LoaderGenerator with associated parameters.
Parameters:
  sourceType - defines the type of the source data.
Parameters:
  targetType - defines the type of the target data.
Parameters:
  sourceDriverName - is driver of defined source database.
Parameters:
  targetDriverName - is driver of defined target database.
Parameters:
  sourceDataBase - defines the place where you're put the database tables.
Parameters:
  targetDataBase - defines the place where the target database tables are.
Parameters:
  valueMode - defines the difference from overwrite and update attribute.Default valueMode is Overwrite.
Parameters:
  generatorOutput - is optional. That represents the directory, where theOctopus place created files. If this argument don't exists, Octopus placecreated files in to current directory!
Parameters:
  sourceUser - defines the user of the source database.
Parameters:
  sourcePassword - defines user password for the source database.
Parameters:
  targetUser - defines the user of the target database.
Parameters:
  targetPassword - defines user password for the target database.
Parameters:
  domlPath - defines if the doml file exists. Default value is falseall, application generates xml, sql and doml files as ouput files. If the generateDoc has valuedoml, application generates only the doml file, and if generateDoc has the value wdoml, applicationgenerates xml and sql files.
Parameters:
  packageName - defines the package name for the generated doml file.
Parameters:
  generateDropTableStmt - defines if you want to generate only Sql statement for DROP TABLE
Parameters:
  generateCreateTableStmt - defines if you want to generate only Sql statement for CREATE TABLE
Parameters:
  generateCreatePKStmt - defines if you want to generate only Sql statement for ALTER TABLE
Parameters:
  generateCreateFKStmt - defines if you want to generate only Sql statement for ALTER TABLE
Parameters:
  generateCreateIndexStmt - defines if you want to generate only Sql statement for ALTER TABLE
Parameters:
  generateSqlForAllVendors - defines if you want to generate Sql statements for all nameddatabase vendors
Parameters:
  generateXml - defines if you want to generate xml file as output files
Parameters:
  generateDoml - defines if you want to generate doml file as output file
Parameters:
  fullMode - defines in which mode you want to generate xml files.
Parameters:
  restoreMode - defines if we use application for restoring the database
Parameters:
  includeTableList - defines the list of tables which you want to include intoGenerator process
Parameters:
  confJarStructure - defines the structure of jar file in which are conf filesplaced.
throws:
  LoaderException -



LoaderGenerator
public LoaderGenerator(String sourceType, String sourceDataBase, String valueMode, String generatorOutput, String sourceDriverName, String targetDriverName, String targetDataBase, String targetType, String sourceUser, String sourcePassword, String targetUser, String targetPassword, String domlPath, String packageName, String generateDropTableStmt, String generateDropIntegrityStmt, String generateCreateTableStmt, String generateCreatePKStmt, String generateCreateFKStmt, String generateCreateIndexStmt, String generateSqlForAllVendors, String generateXml, String generateDoml, String fullMode, String restoreMode, String includeTableList, String confJarStructure, String logMode, String logDirName, String logFileName) throws LoaderException(Code)
Construct object LoaderGenerator with associated parameters.
Parameters:
  sourceType - defines the type of the source data.
Parameters:
  targetType - defines the type of the target data.
Parameters:
  sourceDriverName - is driver of defined source database.
Parameters:
  targetDriverName - is driver of defined target database.
Parameters:
  sourceDataBase - defines the place where you're put the database tables.
Parameters:
  targetDataBase - defines the place where the target database tables are.
Parameters:
  valueMode - defines the difference from overwrite and update attribute.Default valueMode is Overwrite.
Parameters:
  generatorOutput - is optional. That represents the directory, where theOctopus place created files. If this argument don't exists, Octopus placecreated files in to current directory!
Parameters:
  sourceUser - defines the user of the source database.
Parameters:
  sourcePassword - defines user password for the source database.
Parameters:
  targetUser - defines the user of the target database.
Parameters:
  targetPassword - defines user password for the target database.
Parameters:
  domlPath - defines if the doml file exists. Default value is falseall, application generates xml, sql and doml files as ouput files. If the generateDoc has valuedoml, application generates only the doml file, and if generateDoc has the value wdoml, applicationgenerates xml and sql files.
Parameters:
  packageName - defines the package name for the generated doml file.
Parameters:
  generateDropTableStmt - defines if you want to generate only Sql statement for DROP TABLE
Parameters:
  generateCreateTableStmt - defines if you want to generate only Sql statement for CREATE TABLE
Parameters:
  generateCreatePKStmt - defines if you want to generate only Sql statement for ALTER TABLE
Parameters:
  generateCreateFKStmt - defines if you want to generate only Sql statement for ALTER TABLE
Parameters:
  generateCreateIndexStmt - defines if you want to generate only Sql statement for ALTER TABLE
Parameters:
  generateSqlForAllVendors - defines if you want to generate Sql statements for all nameddatabase vendors
Parameters:
  generateXml - defines if you want to generate xml file as output files
Parameters:
  generateDoml - defines if you want to generate doml file as output file
Parameters:
  fullMode - defines in which mode you want to generate xml files.
Parameters:
  restoreMode - defines if we use application for restoring the database
Parameters:
  includeTableList - defines the list of tables which you want to include intoGenerator process
Parameters:
  confJarStructure - defines the structure of jar file in which are conf files
Parameters:
  logMode - defines logging level
Parameters:
  logDirName - defines logging directory
Parameters:
  logFileName - defines logging file nameplaced.
throws:
  LoaderException -



LoaderGenerator
public LoaderGenerator(String sourceDataBase, String targetDataBase, String sourceType, String targetType) throws LoaderException(Code)
Public constructor of LoaderGenerator class. Constructor set value for sourceDataBase and targetDataBase attribute. Class set all other attributes to the default values.
Parameters:
  sourceDataBase - defines the place where you're put the database tables.
Parameters:
  targetDataBase - defines the place where the target database tables are.
Parameters:
  sourceType - defines the type of the source database.
Parameters:
  targetType - defines the type of the target database.
throws:
  LoaderException -



LoaderGenerator
public LoaderGenerator(String sourceDataBase, String targetDataBase, String sourceType, String targetType, String confJarStructure) throws LoaderException(Code)
Public constructor of LoaderGenerator class. Constructor set value for sourceDataBase and targetDataBase attribute. Class set all other attributes to the default values.
Parameters:
  sourceDataBase - defines the place where you're put the database tables.
Parameters:
  targetDataBase - defines the place where the target database tables are.
Parameters:
  sourceType - defines the type of the source database.
Parameters:
  targetType - defines the type of the target database.
throws:
  LoaderException -




Method Detail
generate
public void generate() throws LoaderException(Code)
Method generate is main method in class LoaderGenerator. It is used to load data from the source table, and starts LoadJobWriter,CreateIncludeFiles and CreateIncludeDomlFiles methods.
throws:
  LoaderException -



getConfJarStructure
public String getConfJarStructure() throws LoaderException(Code)
This method get confJarStructure ConfJarStructure
throws:
  LoaderException -



getDomlPath
public String getDomlPath() throws LoaderException(Code)
This method return domlPath domlPath
throws:
  LoaderException -



getFullMode
public boolean getFullMode() throws LoaderException(Code)
This method return fullMode boolean with value for fullMode
throws:
  LoaderException -



getGenerateCreateFKStmt
public boolean getGenerateCreateFKStmt() throws LoaderException(Code)
This method return generateCreateFKStmt generateCreateFKStmt
throws:
  LoaderException -



getGenerateCreateIndexStmt
public boolean getGenerateCreateIndexStmt() throws LoaderException(Code)
This method return generateCreateIndexStmt CreateIndexes
throws:
  LoaderException -



getGenerateCreatePKStmt
public boolean getGenerateCreatePKStmt() throws LoaderException(Code)
This method return generateCreatePKStmt GenerateCreatePKStmt
throws:
  LoaderException -



getGenerateCreateTableStmt
public boolean getGenerateCreateTableStmt() throws LoaderException(Code)
This method will return boolean which represents if user set "Create Tables" or not boolean value
throws:
  LoaderException -



getGenerateDoml
public boolean getGenerateDoml() throws LoaderException(Code)
This method return generateDoml boolean with value for generateDoml
throws:
  LoaderException -



getGenerateDropIntegrityStmt
public boolean getGenerateDropIntegrityStmt() throws LoaderException(Code)
This method return generateDropIntegrityStmt generateDropIntegrityStmt
throws:
  LoaderException -



getGenerateDropTableStmt
public boolean getGenerateDropTableStmt() throws LoaderException(Code)
This method return generateDropTableStmt generateDropTableStmt
throws:
  LoaderException -



getGenerateSQL
public boolean getGenerateSQL() throws LoaderException(Code)
This method return generateSQL bollean with value for generateSQL
throws:
  LoaderException -



getGenerateSqlForAllVendors
public boolean getGenerateSqlForAllVendors() throws LoaderException(Code)
This method return GenerateSqlForAllVendors GenerateSqlForAllVendors
throws:
  LoaderException -



getGenerateXml
public boolean getGenerateXml() throws LoaderException(Code)
This method return generateXml boolean
throws:
  LoaderException -



getGeneratorOutput
public String getGeneratorOutput() throws LoaderException(Code)
This method return generatorOutput generatorOutput
throws:
  LoaderException -



getIncludeTableList
public String getIncludeTableList() throws LoaderException(Code)
This method return includeTableList String which is list with included tables
throws:
  LoaderException -



getLogMode
public String getLogMode()(Code)
This method return logMode logMode



getPackageName
public String getPackageName() throws LoaderException(Code)
This method return packageName packageName
throws:
  LoaderException -



getRestoreMode
public String getRestoreMode() throws LoaderException(Code)
This method return restoreMode restoreMode
throws:
  LoaderException -



getSourceDataBase
public String getSourceDataBase() throws LoaderException(Code)
This method return sourceDataBase sourceDataBase
throws:
  LoaderException -



getSourceDriverName
public String getSourceDriverName() throws LoaderException(Code)
This method return sourceDriverName sourceDriverName
throws:
  LoaderException -



getSourcePassword
public String getSourcePassword() throws LoaderException(Code)
This method return sourcePassword sourcePassword
throws:
  LoaderException -



getSourceType
public String getSourceType() throws LoaderException(Code)
This method return sourceType sourceType
throws:
  LoaderException -



getSourceUser
public String getSourceUser() throws LoaderException(Code)
This method return sourceUser sourceUser
throws:
  LoaderException -



getStrLogDirName
public String getStrLogDirName()(Code)
This method return strLogDirName strLogDirName



getStrLogFileName
public String getStrLogFileName()(Code)
This method return strLogFileName strLogFileName



getTargetDataBase
public String getTargetDataBase() throws LoaderException(Code)
This method return targetDataBase targetDataBase
throws:
  LoaderException -



getTargetDriverName
public String getTargetDriverName() throws LoaderException(Code)
This method return targetDriverName targetDriverName
throws:
  LoaderException -



getTargetPassword
public String getTargetPassword() throws LoaderException(Code)
This method set targetPassword targetPassword
throws:
  LoaderException -



getTargetType
public String getTargetType() throws LoaderException(Code)
This method return targetType String which is target type
throws:
  LoaderException -



getTargetUser
public String getTargetUser() throws LoaderException(Code)
This method return targetUser targetUser
throws:
  LoaderException -



getValueMode
public String getValueMode() throws LoaderException(Code)
This method returns valueMode String which is value mode
throws:
  LoaderException -



inputToString
public String inputToString() throws LoaderException(Code)
This method write values for all input parameters to System out
throws:
  LoaderException -



main
public static void main(String args)(Code)
Main method controls parameters, it they are OK starts load method, but if they aren't makes alert.
Parameters:
  args - represents the input parametersUsage: java org.webdocwf.util.loader.generator.Generator [options]Options:-st sourceType, defines the type of the source database.-tt targetType, defines the type of the target database.-sdn sourceDriverName, defines the driver of defined source database.-tdn targetDriverName, defines the driver of defined target database.-sdb sourceDataBase, defines the place where you're put the source database tables.-tdb targetDataBase, defines the place where you're put the target database tables.-m valueMode, defines the difference from overwrite and update attribute. If the valueModehas value 'copy', attribute has value 'Overwrite', or if the valueMode has value 'sync', attributehas value 'Update'. Default value of valueMode is 'copy'.-o generatorOutput, is optional. That represent the directory, where the Octopus place created files.If this argument don't exists, Octopus place created files in to current directory!-su sourceUser, defines the user of the source database.-sp sourcePassword, defines the user password for the source database.-tu targetUser, defines the user of the target database.-tp targetPassword, defines the user password for the target database.-doml domlUrl, defines the place where the doml file is placed.-pack packageName, defines the package name for the generated doml file.-xml -xml generateXml, defines if you want to generate xml files as output files-gdoml generateDoml, defines if you want to generate doml file as output file.-sqlCT generateCreateTables defines if you want to generate only Sql statement for CREATE TABLE.-sqlDT generateDropTableStmt defines if you want to generate only Sql statement for DROP TABLE.-sqlCPK generateCreatePrimaryKeys defines if you want to generate only Sql statement for ALTER TABLE ADD CONSTRAINT (PRIMARY KEY).-sqlCFK generateCreateForeigKeys defines if you want to generate only Sql statement for ALTER TABLE ADD CONSTRAINT (FOREIGN KEY).-sqlCI generateCreateIndex defines if you want to generate only Sql statement for CREATE INDEX.-sqlAll generateSqlForAllVendors defines if you want to generate sql statements for all named database vendors.-fm fullMode defines the mode of output xml files. Possible values are true and false.-lm logMode defines logging level-l logDirName defines logging directory-f logFileName defines logging file name



printUsage
static void printUsage()(Code)



setConfJarStructure
public void setConfJarStructure(String confJarStructure) throws LoaderException(Code)
This method set confJarStructure
Parameters:
  confJarStructure -
throws:
  LoaderException -



setDomlPath
public void setDomlPath(String domlPath) throws LoaderException(Code)
This method set domlPath
Parameters:
  domlPath -
throws:
  LoaderException -



setFullMode
public void setFullMode(boolean fullMode) throws LoaderException(Code)
This method set fullMode
Parameters:
  fullMode -
throws:
  LoaderException -



setGenerateCreateFKStmt
public void setGenerateCreateFKStmt(boolean generateCreateFKStmt) throws LoaderException(Code)
This method set generateCreateFKStmt
Parameters:
  generateCreateFKStmt -
throws:
  LoaderException -



setGenerateCreateIndexStmt
public void setGenerateCreateIndexStmt(boolean generateCreateIndexStmt) throws LoaderException(Code)
This method set generateCreateIndexStmt
Parameters:
  generateCreateIndexStmt -
throws:
  LoaderException -



setGenerateCreatePKStmt
public void setGenerateCreatePKStmt(boolean generateCreatePKStmt) throws LoaderException(Code)
This method set generateCreatePKStmt
Parameters:
  generateCreatePKStmt -
throws:
  LoaderException -



setGenerateCreateTableStmt
public void setGenerateCreateTableStmt(boolean generateCreateTableStmt) throws LoaderException(Code)
This method set generateCreateTableStmt
Parameters:
  generateCreateTableStmt -
throws:
  LoaderException -



setGenerateDoml
public void setGenerateDoml(boolean generateDoml) throws LoaderException(Code)
This method set generateDoml
Parameters:
  generateDoml -
throws:
  LoaderException -



setGenerateDropIntegrityStmt
public void setGenerateDropIntegrityStmt(boolean generateDropIntegrityStmt) throws LoaderException(Code)
This method set generateDropIntegrityStmt
Parameters:
  generateDropIntegrityStmt -
throws:
  LoaderException -



setGenerateDropTableStmt
public void setGenerateDropTableStmt(boolean generateDropTableStmt) throws LoaderException(Code)
This method set generateDropTableStmt
Parameters:
  generateDropTableStmt -
throws:
  LoaderException -



setGenerateSqlForAllVendors
public void setGenerateSqlForAllVendors(boolean generateSqlForAllVendors) throws LoaderException(Code)
This method set generateSqlForAllVendors
Parameters:
  generateSqlForAllVendors -
throws:
  LoaderException -



setGenerateXml
public void setGenerateXml(boolean generateXml) throws LoaderException(Code)
This method set generateXml
Parameters:
  generateXml -
throws:
  LoaderException -



setGeneratorOutput
public void setGeneratorOutput(String generatorOutput) throws LoaderException(Code)
This method set generatorOutput
Parameters:
  generatorOutput -
throws:
  LoaderException -



setIncludeTableList
public void setIncludeTableList(String includeTableList) throws LoaderException(Code)
This method set includeTableList
Parameters:
  includeTableList -
throws:
  LoaderException -



setLogMode
public void setLogMode(String logMode)(Code)
This method set logMode
Parameters:
  logMode -



setPackageName
public void setPackageName(String packageName) throws LoaderException(Code)
This method set packageName
Parameters:
  packageName -
throws:
  LoaderException -



setRestoreMode
public void setRestoreMode(String restoreMode) throws LoaderException(Code)
This method set restoreMode
Parameters:
  restoreMode -
throws:
  LoaderException -



setSourceDataBase
public void setSourceDataBase(String sourceDataBase) throws LoaderException(Code)
This method set sourceDataBase
Parameters:
  sourceDataBase -
throws:
  LoaderException -



setSourceDriverName
public void setSourceDriverName(String sourceDriverName) throws LoaderException(Code)
This method set sourceDriverName
Parameters:
  sourceDriverName -
throws:
  LoaderException -



setSourcePassword
public void setSourcePassword(String sourcePassword) throws LoaderException(Code)
This method set sourcePassword
Parameters:
  sourcePassword -
throws:
  LoaderException -



setSourceType
public void setSourceType(String sourceType) throws LoaderException(Code)
This method set sourceType
Parameters:
  sourceType -
throws:
  LoaderException -



setSourceUser
public void setSourceUser(String sourceUser) throws LoaderException(Code)
This method set sourceUser
Parameters:
  sourceUser -
throws:
  LoaderException -



setStrLogDirName
public void setStrLogDirName(String strLogDirName)(Code)
This method set strLogDirName
Parameters:
  strLogDirName -



setStrLogFileName
public void setStrLogFileName(String strLogFileName)(Code)
This method set strLogFileName
Parameters:
  strLogFileName -



setTargetDataBase
public void setTargetDataBase(String targetDataBase) throws LoaderException(Code)
This method set targetDataBase
Parameters:
  targetDataBase -
throws:
  LoaderException -



setTargetDriverName
public void setTargetDriverName(String targetDriverName) throws LoaderException(Code)
This method set targetDriverName
Parameters:
  targetDriverName -
throws:
  LoaderException -



setTargetPassword
public void setTargetPassword(String targetPassword) throws LoaderException(Code)
This method set targetPassword
Parameters:
  targetPassword -
throws:
  LoaderException -



setTargetType
public void setTargetType(String targetType) throws LoaderException(Code)
This method set targetType
Parameters:
  targetType -
throws:
  LoaderException -



setTargetUser
public void setTargetUser(String targetUser) throws LoaderException(Code)
This method set targetUser
Parameters:
  targetUser -
throws:
  LoaderException -



setValueMode
public void setValueMode(String valueMode) throws LoaderException(Code)
This method set valueMode
Parameters:
  valueMode -
throws:
  LoaderException -



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.