org.webdocwf.util.loader.generator
Class SearchXmlFile

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

public class SearchXmlFile
extends java.lang.Object

SearchXmlFile class search the named xml document.

Version:
1.0
Author:
Radoslav Dutina

Constructor Summary
SearchXmlFile(java.lang.String typePath, java.lang.String path, java.lang.String confJarStructure)
          Construct object SearchXmlFile with associated parameters.
 
Method Summary
 java.util.Vector getAllDriversForVendor()
          This method read value of drivers parameter
 java.util.Vector getAllVendors()
          This method read value of allVendors parameter
 java.util.Vector getAllVendorsPath()
          This method read value of allVendorsPath parameter
 java.lang.String getAlterTablePrimaryKey(java.lang.String driverName)
          This method set value of alterTablePrimaryKey parameter
 void getClassName(java.lang.String driverName, JdbcParameters jdbcParameters, InputParameters generatorParameters)
          This method search the named xml document, and read the value of driverClassName parameter, which represents driver class for the named driver.
 java.lang.String getDriverName()
          This method search the named xml document, and read the value of name (Driver) parameter, which represents the driver name.
 java.lang.String getExcludedTables()
           
 java.util.Vector getFileSystemDatabase(java.lang.String driverName)
           
 java.util.Hashtable getHasSize()
          This method search the named xml document, and read the value of hasSize parameter
 java.util.Hashtable getIsDecimal()
          This method search the named xml document, and read the value of isDecimal parameter
 java.lang.String getJAVAType(java.lang.String java_Type)
          This method search the named xml document, and read the value of javaType parameter, which represents the java type of data of the named jdbc type of data.
 java.lang.String getJDBCFromSQLType(java.lang.String sql_Type)
          This method search the named xml document, and read the value of jdbcType parameter, which represents the jdbc type of data of the named sql type of data.
 java.lang.String getMaxConstraintLength(java.lang.String driverName)
           
 java.lang.String getOidDB()
          This method search the named xml document, and read the value of oidDbType parameter, which represents the oid type for the named database.
 java.lang.String getOidDbColumn()
          This method search the named xml document, and read the value of oidDbColumnName parameter, which represents the oid name for the named database.
 java.lang.String getPathToConf(java.lang.String database_Type)
          This method search the named xml document, and read the value of pathToConf parameter which represents the path of the conf file, for the named database.
 java.lang.String getSQLFromJDBCType(java.lang.String jdbc_Type)
          This method search the named xml document, and read the value of sqlType parameter, which represents the sql type of data of the named jdbc type of data.
 java.lang.String getVersionDb()
          This method search the named xml document, and read the value of versionDbType parameter, which represents the version type of the named database.
 java.lang.String getVersionDbColumn()
          This method search the named xml document, and read the value of versionDbColumnName parameter, which represents the version name of the named database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchXmlFile

public SearchXmlFile(java.lang.String typePath,
                     java.lang.String path,
                     java.lang.String confJarStructure)
              throws LoaderException
Construct object SearchXmlFile with associated parameters.

Parameters:
typePath - defines the type of the path. Path can be relative, absolute and jar. If the parameter has value jar, then the xml file is placed in jar file.
path - is the path to named xml file.
Throws:
LoaderException
Method Detail

getAllVendors

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

Returns:
value of parameter

getAllVendorsPath

public java.util.Vector getAllVendorsPath()
This method read value of allVendorsPath parameter

Returns:
value of parameter

getAllDriversForVendor

public java.util.Vector getAllDriversForVendor()
This method read value of drivers parameter

Returns:
value of parameter

getPathToConf

public java.lang.String getPathToConf(java.lang.String database_Type)
This method search the named xml document, and read the value of pathToConf parameter which represents the path of the conf file, for the named database.

Parameters:
database_Type - is the type of the database.
Returns:
value of paramter.

getClassName

public void getClassName(java.lang.String driverName,
                         JdbcParameters jdbcParameters,
                         InputParameters generatorParameters)
                  throws LoaderException
This method search the named xml document, and read the value of driverClassName parameter, which represents driver class for the named driver.

Parameters:
driverName - is the name of the driver.
jdbcParameters - is reference to JdbcParameters object.
generatorParameters - is object of InputParameters class
Throws:
LoaderException

getFileSystemDatabase

public java.util.Vector getFileSystemDatabase(java.lang.String driverName)
                                       throws LoaderException
Throws:
LoaderException

getMaxConstraintLength

public java.lang.String getMaxConstraintLength(java.lang.String driverName)
                                        throws LoaderException
Throws:
LoaderException

getAlterTablePrimaryKey

public java.lang.String getAlterTablePrimaryKey(java.lang.String driverName)
                                         throws LoaderException
This method set value of alterTablePrimaryKey parameter

Parameters:
driverName - is name of the driver
Returns:
value of parameter
Throws:
LoaderException

getJDBCFromSQLType

public java.lang.String getJDBCFromSQLType(java.lang.String sql_Type)
                                    throws LoaderException
This method search the named xml document, and read the value of jdbcType parameter, which represents the jdbc type of data of the named sql type of data.

Parameters:
sql_Type - is the sql type of data.
Returns:
jdbc type of data.
Throws:
LoaderException

getHasSize

public java.util.Hashtable getHasSize()
                               throws LoaderException
This method search the named xml document, and read the value of hasSize parameter

Returns:
hasSize.
Throws:
LoaderException

getIsDecimal

public java.util.Hashtable getIsDecimal()
                                 throws LoaderException
This method search the named xml document, and read the value of isDecimal parameter

Returns:
hasSize.
Throws:
LoaderException

getSQLFromJDBCType

public java.lang.String getSQLFromJDBCType(java.lang.String jdbc_Type)
                                    throws LoaderException
This method search the named xml document, and read the value of sqlType parameter, which represents the sql type of data of the named jdbc type of data.

Parameters:
jdbc_Type - is the jdbc type of data.
Returns:
the sql type of data.
Throws:
LoaderException

getJAVAType

public java.lang.String getJAVAType(java.lang.String java_Type)
                             throws LoaderException
This method search the named xml document, and read the value of javaType parameter, which represents the java type of data of the named jdbc type of data.

Parameters:
java_Type - is the jdbc type of data.
Returns:
java type of data.
Throws:
LoaderException

getOidDB

public java.lang.String getOidDB()
                          throws LoaderException
This method search the named xml document, and read the value of oidDbType parameter, which represents the oid type for the named database.

Returns:
oid type.
Throws:
LoaderException

getVersionDb

public java.lang.String getVersionDb()
                              throws LoaderException
This method search the named xml document, and read the value of versionDbType parameter, which represents the version type of the named database.

Returns:
version type.
Throws:
LoaderException

getOidDbColumn

public java.lang.String getOidDbColumn()
                                throws LoaderException
This method search the named xml document, and read the value of oidDbColumnName parameter, which represents the oid name for the named database.

Returns:
oid name.
Throws:
LoaderException

getVersionDbColumn

public java.lang.String getVersionDbColumn()
                                    throws LoaderException
This method search the named xml document, and read the value of versionDbColumnName parameter, which represents the version name of the named database.

Returns:
version name.
Throws:
LoaderException

getDriverName

public java.lang.String getDriverName()
This method search the named xml document, and read the value of name (Driver) parameter, which represents the driver name.

Returns:
value of parameter.

getExcludedTables

public java.lang.String getExcludedTables()
                                   throws LoaderException
Throws:
LoaderException


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