org.webdocwf.util.loader.generator
Class InputParameters

java.lang.Object
  extended by org.webdocwf.util.loader.generator.InputParameters

public class InputParameters
extends java.lang.Object

InputParameters class sets the input parameters.

Version:
1.0
Author:
Radoslav Dutina

Constructor Summary
InputParameters(java.lang.String confJarStructure)
          Construct object InputParameters, and initialise the default value of input parameters.
 
Method Summary
 java.util.Vector getAllVendors()
          This method read value from allVendors parameter
 java.lang.String getAlterTablePrimaryKey()
          This method read the value of alterTablePrimaryKey parameter.
 java.lang.String getConfJarStructure()
          This method returns string with path to conf in jar
 java.lang.String getDomlPath()
          This method read the value of domlPath parameter.
 java.lang.String[] getExcludedTables()
          This method returns excluded tables
 boolean getFullMode()
          This method read value of fullMode parameter
 java.lang.String getGenerateDoml()
          This method read value of generateDoml parameter
 java.lang.String getGenerateXml()
          This method read value of generateXml parameter
 java.lang.String getGeneratorOutput()
          This method read the value of generatorOutput parameter.
 java.lang.String getHasSize(java.lang.String sqlType)
          Return boolean if size for this type must be defined by user or not
 java.util.Vector getIncludeTableList()
          This method read value from includeTableList parameter
 java.lang.String getIsDecimal(java.lang.String sqlType)
          Return boolean if this string represents decimal type or not
 java.lang.String getMaxConstraintLength()
           
 java.lang.String getOidColumnName()
           
 java.lang.String getOidColumnType()
           
 java.lang.String getPackageName()
          This method read the value of packageName parameter.
 java.lang.String getPath()
          This method reads value of path parameter.
 java.lang.String getPathToSourceConf()
          This method read the value of pathToSourceConf parameter.
 java.lang.String getPathToTargetConf()
          This method read the value of pathToTargetConf parameter.
 java.lang.String getRestoreMode()
          This method read value from restoreMode parameter
 java.lang.String getSourceDataBase()
          This method read the value of sourceDataBase parameter.
 java.lang.String getSourceDriverName()
          This method read the value of sourceDriverName parameter.
 java.lang.String getSourcePassword()
          This method read the value of sourcePassword parameter.
 java.lang.String getSourceType()
          This method read the value of sourceType parameter.
 java.lang.String getSourceUser()
          This method read the value of sourceUser parameter.
 boolean getSqlForAllVendors()
          This method read value from generateSqlForAllVendors parameter
 java.util.Vector getSqlToGenerate()
          This method reads value of sqlToGenerate parameter.
 java.lang.String getTargetDataBase()
          This method read the value of targetDataBase parameter.
 java.lang.String getTargetDriverName()
          This method read the value of targetDriverName parameter.
 java.lang.String getTargetPassword()
          This method read the value of targetPassword parameter.
 java.lang.String getTargetType()
          This method read the value of targetType parameter.
 java.lang.String getTargetUser()
          This method read the value of targetUser parameter.
 java.lang.String getValueMode()
          This method read the value of valueMode parameter.
 java.lang.String getVersionColumnName()
           
 java.lang.String getVersionColumnType()
           
 boolean isGenerateSql()
          This method read value form generateSqlOnly parameter
 void setAllVendors(java.lang.String generate)
          This method set the value of allVendors parameter
 void setAlterTablePrimaryKey(java.lang.String alter_TablePrimaryKey)
          This method sets the value of alterTablePrimaryKey parameter.
 void setConfJarStructure(java.lang.String confJarStructure)
          This method set parameter confJar
 void setDomlPath(java.lang.String doml_Path)
          This method sets the value of domlPath parameter.
 void setExcludedTables(java.lang.String value)
          This method set excluded tables
 void setFullMode(java.lang.String full_mode)
          This method set value of fullMode parameter
 void setGenerateDoml(java.lang.String generate_Doml)
          This method set value of generateDoml parameter
 void setGenerateXml(java.lang.String generate_Xml)
          This method set value of generateXml parameter
 void setGeneratorOutput(java.lang.String generator_Output)
          This method sets the value of generatorOutput parameter.
 void setHasSize()
          Set hasSize values for db vendor
 void setIncludeTableList(java.lang.String include_table_list)
          This method set value of includeTableList parameter
 void setIsDecimal()
          Set decimal types for this DB vendor
 void setOidAndVersionColumnName()
           
 void setPackageName(java.lang.String package_Name)
          This method sets the value of packageName parameter.
 void setPathToSourceConf(java.lang.String path_ToSourceConf)
          This method sets the value of pathToSourceConf parameter.
 void setPathToTargetConf(java.lang.String path_ToTargetConf)
          This method sets the value of pathToTargetConf parameter.
 void setRestoreMode(java.lang.String restoreMode)
          This method set value of restroreMode parameter
 void setSourceDataBase(java.lang.String source_DataBase)
          This method sets the value of sourceDataBase parameter.
 void setSourceDriverName(java.lang.String source_DriverName)
          This method sets the value of sourceDriverName parameter.
 void setSourceDriverProperties()
           
 void setSourcePassword(java.lang.String source_Password)
          This method sets the value of sourcePassword parameter.
 void setSourceType(java.lang.String source_Type)
          This method sets the value of sourceType parameter.
 void setSourceUser(java.lang.String source_User)
          This method sets the value of sourceUser parameter.
 void setSqlStmtCreateFK(java.lang.String generate_CreateFKStmt)
          This method sets the value of sqlToGenerate parameter.
 void setSqlStmtCreateIndex(java.lang.String generate_CreateIndexStmt)
          This method sets the value of sqlToGenerate parameter.
 void setSqlStmtCreatePK(java.lang.String generate_CreatePKStmt)
          This method sets the value of sqlToGenerate parameter.
 void setSqlStmtCreateTable(java.lang.String generate_CreateTableStmt)
          This method sets the value of sqlToGenerate parameter.
 void setSqlStmtDropIntegrity(java.lang.String generate_DropIntegrityStmt)
          This method sets the value of sqlToGenerate parameter.
 void setSqlStmtDropTable(java.lang.String generate_DropTableStmt)
          This method sets the value of sqlToGenerate parameter.
 void setSqlToGenerate()
          This method sets value of sqlToGenerate parameter.
 void setTargetDataBase(java.lang.String target_DataBase)
          This method sets the value of targetDataBase parameter.
 void setTargetDriverName(java.lang.String target_DriverName)
          This method sets the value of targetDriverName parameter.
 void setTargetDriverProperties()
           
 void setTargetPassword(java.lang.String target_Password)
          This method sets the value of targetPassword parameter.
 void setTargetType(java.lang.String target_Type)
          This method sets the value of targetType parameter.
 void setTargetUser(java.lang.String target_User)
          This method sets the value of targetUser parameter.
 void setValueMode(java.lang.String value_Mode)
          This method sets the value of valueMode parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputParameters

public InputParameters(java.lang.String confJarStructure)
                throws LoaderException
Construct object InputParameters, and initialise the default value of input parameters.

Throws:
LoaderException
Method Detail

setHasSize

public void setHasSize()
                throws LoaderException
Set hasSize values for db vendor

Throws:
LoaderException

getHasSize

public java.lang.String getHasSize(java.lang.String sqlType)
                            throws LoaderException
Return boolean if size for this type must be defined by user or not

Parameters:
sqlType -
Returns:
String which represents is this type has size or not
Throws:
LoaderException

setIsDecimal

public void setIsDecimal()
                  throws LoaderException
Set decimal types for this DB vendor

Throws:
LoaderException

getIsDecimal

public java.lang.String getIsDecimal(java.lang.String sqlType)
                              throws LoaderException
Return boolean if this string represents decimal type or not

Parameters:
sqlType -
Returns:
String which represents is this number decimal or not
Throws:
LoaderException

setOidAndVersionColumnName

public void setOidAndVersionColumnName()
                                throws LoaderException
Throws:
LoaderException

getOidColumnName

public java.lang.String getOidColumnName()

getVersionColumnName

public java.lang.String getVersionColumnName()

getOidColumnType

public java.lang.String getOidColumnType()

getVersionColumnType

public java.lang.String getVersionColumnType()

setIncludeTableList

public void setIncludeTableList(java.lang.String include_table_list)
                         throws LoaderException
This method set value of includeTableList parameter

Parameters:
include_table_list - is value of parameter
Throws:
LoaderException

getIncludeTableList

public java.util.Vector getIncludeTableList()
This method read value from includeTableList parameter

Returns:
value of parameter

setRestoreMode

public void setRestoreMode(java.lang.String restoreMode)
This method set value of restroreMode parameter

Parameters:
restoreMode - is value of parameter

getRestoreMode

public java.lang.String getRestoreMode()
This method read value from restoreMode parameter

Returns:
value of parameter

setFullMode

public void setFullMode(java.lang.String full_mode)
This method set value of fullMode parameter

Parameters:
full_mode - is value of parameter

getFullMode

public boolean getFullMode()
This method read value of fullMode parameter

Returns:
value of parameter

setGenerateXml

public void setGenerateXml(java.lang.String generate_Xml)
This method set value of generateXml parameter

Parameters:
generate_Xml - is value of parameter

getGenerateXml

public java.lang.String getGenerateXml()
This method read value of generateXml parameter

Returns:
value of parameter

getGenerateDoml

public java.lang.String getGenerateDoml()
This method read value of generateDoml parameter

Returns:
value of parameter

setGenerateDoml

public void setGenerateDoml(java.lang.String generate_Doml)
This method set value of generateDoml parameter

Parameters:
generate_Doml - is value of parameter

getSqlForAllVendors

public boolean getSqlForAllVendors()
This method read value from generateSqlForAllVendors parameter

Returns:
value of parameter

setAllVendors

public void setAllVendors(java.lang.String generate)
This method set the value of allVendors parameter

Parameters:
generate - is value of parameter

getAllVendors

public java.util.Vector getAllVendors()
This method read value from allVendors parameter

Returns:
value of parameter

isGenerateSql

public boolean isGenerateSql()
This method read value form generateSqlOnly parameter

Returns:
value of parameter

setSqlStmtDropTable

public void setSqlStmtDropTable(java.lang.String generate_DropTableStmt)
This method sets the value of sqlToGenerate parameter.

Parameters:
generate_DropTableStmt - is value of parameter

setSqlStmtDropIntegrity

public void setSqlStmtDropIntegrity(java.lang.String generate_DropIntegrityStmt)
This method sets the value of sqlToGenerate parameter.

Parameters:
generate_DropIntegrityStmt - is value of parameter

setSqlStmtCreateTable

public void setSqlStmtCreateTable(java.lang.String generate_CreateTableStmt)
This method sets the value of sqlToGenerate parameter.

Parameters:
generate_CreateTableStmt - is value of parameter

setSqlStmtCreatePK

public void setSqlStmtCreatePK(java.lang.String generate_CreatePKStmt)
This method sets the value of sqlToGenerate parameter.

Parameters:
generate_CreatePKStmt - is value of parameter

setSqlStmtCreateFK

public void setSqlStmtCreateFK(java.lang.String generate_CreateFKStmt)
This method sets the value of sqlToGenerate parameter.

Parameters:
generate_CreateFKStmt - is value of parameter

setSqlStmtCreateIndex

public void setSqlStmtCreateIndex(java.lang.String generate_CreateIndexStmt)
This method sets the value of sqlToGenerate parameter.

Parameters:
generate_CreateIndexStmt - is value of parameter

getSqlToGenerate

public java.util.Vector getSqlToGenerate()
This method reads value of sqlToGenerate parameter.

Returns:
value of parameter.

setSqlToGenerate

public void setSqlToGenerate()
This method sets value of sqlToGenerate parameter.


getPath

public java.lang.String getPath()
This method reads value of path parameter.

Returns:
value of parameter.

setPathToSourceConf

public void setPathToSourceConf(java.lang.String path_ToSourceConf)
This method sets the value of pathToSourceConf parameter.

Parameters:
path_ToSourceConf - is the value of parameter.

getPathToSourceConf

public java.lang.String getPathToSourceConf()
This method read the value of pathToSourceConf parameter.

Returns:
the value of parameter.

setSourceType

public void setSourceType(java.lang.String source_Type)
                   throws LoaderException
This method sets the value of sourceType parameter.

Parameters:
source_Type - is the value of parameter.
Throws:
LoaderException

getSourceType

public java.lang.String getSourceType()
This method read the value of sourceType parameter.

Returns:
value of parameter.

setPathToTargetConf

public void setPathToTargetConf(java.lang.String path_ToTargetConf)
This method sets the value of pathToTargetConf parameter.

Parameters:
path_ToTargetConf - is the value of parameter.

getPathToTargetConf

public java.lang.String getPathToTargetConf()
This method read the value of pathToTargetConf parameter.

Returns:
value of parameter.

setTargetType

public void setTargetType(java.lang.String target_Type)
                   throws LoaderException
This method sets the value of targetType parameter.

Parameters:
target_Type - is the value of parameter.
Throws:
LoaderException

setSourceDriverProperties

public void setSourceDriverProperties()
                               throws LoaderException
Throws:
LoaderException

setTargetDriverProperties

public void setTargetDriverProperties()
                               throws LoaderException
Throws:
LoaderException

getMaxConstraintLength

public java.lang.String getMaxConstraintLength()

getTargetType

public java.lang.String getTargetType()
This method read the value of targetType parameter.

Returns:
value of parameter.

setSourceDataBase

public void setSourceDataBase(java.lang.String source_DataBase)
                       throws LoaderException
This method sets the value of sourceDataBase parameter.

Parameters:
source_DataBase - is the value of parameter.
Throws:
LoaderException

getSourceDataBase

public java.lang.String getSourceDataBase()
This method read the value of sourceDataBase parameter.

Returns:
value of parameter.

setTargetDataBase

public void setTargetDataBase(java.lang.String target_DataBase)
                       throws LoaderException
This method sets the value of targetDataBase parameter.

Parameters:
target_DataBase - is the value of the parameter.
Throws:
LoaderException

getTargetDataBase

public java.lang.String getTargetDataBase()
This method read the value of targetDataBase parameter.

Returns:
value of parameter.

setValueMode

public void setValueMode(java.lang.String value_Mode)
                  throws LoaderException
This method sets the value of valueMode parameter.

Parameters:
value_Mode - is the value of the parameter.
Throws:
LoaderException

getValueMode

public java.lang.String getValueMode()
This method read the value of valueMode parameter.

Returns:
value of parameter.

setGeneratorOutput

public void setGeneratorOutput(java.lang.String generator_Output)
This method sets the value of generatorOutput parameter.

Parameters:
generator_Output - is the value of the parameter.

getGeneratorOutput

public java.lang.String getGeneratorOutput()
This method read the value of generatorOutput parameter.

Returns:
value of parameter.

setSourceUser

public void setSourceUser(java.lang.String source_User)
This method sets the value of sourceUser parameter.

Parameters:
source_User - is the value of the parameter.

getSourceUser

public java.lang.String getSourceUser()
This method read the value of sourceUser parameter.

Returns:
value of parameter.

setSourcePassword

public void setSourcePassword(java.lang.String source_Password)
This method sets the value of sourcePassword parameter.

Parameters:
source_Password - is the value of the parameter.

getSourcePassword

public java.lang.String getSourcePassword()
This method read the value of sourcePassword parameter.

Returns:
value of parameter.

setTargetUser

public void setTargetUser(java.lang.String target_User)
This method sets the value of targetUser parameter.

Parameters:
target_User - is the value of the parameter.

getTargetUser

public java.lang.String getTargetUser()
This method read the value of targetUser parameter.

Returns:
value of parameter.

setTargetPassword

public void setTargetPassword(java.lang.String target_Password)
This method sets the value of targetPassword parameter.

Parameters:
target_Password - is the value of the parameter.

getTargetPassword

public java.lang.String getTargetPassword()
This method read the value of targetPassword parameter.

Returns:
value of parameter.

setSourceDriverName

public void setSourceDriverName(java.lang.String source_DriverName)
This method sets the value of sourceDriverName parameter.

Parameters:
source_DriverName - is the value of parameter.

getSourceDriverName

public java.lang.String getSourceDriverName()
This method read the value of sourceDriverName parameter.

Returns:
value of parameter.

setTargetDriverName

public void setTargetDriverName(java.lang.String target_DriverName)
This method sets the value of targetDriverName parameter.

Parameters:
target_DriverName - is the value of the parameter.

getTargetDriverName

public java.lang.String getTargetDriverName()
This method read the value of targetDriverName parameter.

Returns:
value of parameter.

setDomlPath

public void setDomlPath(java.lang.String doml_Path)
This method sets the value of domlPath parameter.

Parameters:
doml_Path - is the value of the parameter.

getDomlPath

public java.lang.String getDomlPath()
This method read the value of domlPath parameter.

Returns:
value of parameter.

setPackageName

public void setPackageName(java.lang.String package_Name)
                    throws LoaderException
This method sets the value of packageName parameter.

Parameters:
package_Name - is the value of parameter.
Throws:
LoaderException

getPackageName

public java.lang.String getPackageName()
This method read the value of packageName parameter.

Returns:
value of parameter.

setAlterTablePrimaryKey

public void setAlterTablePrimaryKey(java.lang.String alter_TablePrimaryKey)
This method sets the value of alterTablePrimaryKey parameter.

Parameters:
alter_TablePrimaryKey - is the value of parameter.

getAlterTablePrimaryKey

public java.lang.String getAlterTablePrimaryKey()
This method read the value of alterTablePrimaryKey parameter.

Returns:
value of parameter.ss

setExcludedTables

public void setExcludedTables(java.lang.String value)
This method set excluded tables

Parameters:
value -

getExcludedTables

public java.lang.String[] getExcludedTables()
This method returns excluded tables

Returns:
String[] with excluded tables

setConfJarStructure

public void setConfJarStructure(java.lang.String confJarStructure)
This method set parameter confJar


getConfJarStructure

public java.lang.String getConfJarStructure()
This method returns string with path to conf in jar

Returns:
String


Copyright © 2002-2007 Together - the Workgroup. All Rights Reserved.