org.webdocwf.util.loader
Class ConfigReader

java.lang.Object
  extended by org.webdocwf.util.loader.ConfigReader

public class ConfigReader
extends java.lang.Object

Class read configuration parameters from configuration XML file.

Version:
1.1
Author:
Zoran Milakovic, Radoslav Dutina

Field Summary
static java.lang.String SPACE_ESCAPE
           
 
Constructor Summary
ConfigReader()
           
 
Method Summary
 boolean getAfterLastRow()
          This method read value of bAfterLastRow parameter
 boolean getColumnsSupported()
          This method read value of bGetColumnsSupported parameter
 java.lang.String getConnectionPrefix()
          This method read value of bConnectionPrefix parameter
 java.lang.String getDateFormat()
          This method read value from parameter
 java.lang.String getDriverClassName()
          This method read value of strDriverClassName parameter
 boolean getEnableJumpResult()
          This method read value of bEnableJumpResult parameter
 boolean getEnableOrderBy()
          This method read value of bEnableOrderBy parameter
 boolean getFileSystemDatabase()
          This method read value of bFileSystemDatabase parameter
 int getFirstColumnResult()
          This method read value of iFirstColumnResult parameter
 java.util.Hashtable getIsNumberMapp()
          This method read value of isNumberMapp parameter
 java.util.Hashtable getJavaTypeMapings()
          This method read value of javaTypeMapp parameter
 boolean getMaxRowsSupported()
          This method read value of bSetMaxRowsSupported parameter
 java.lang.String getOidColumnName()
          This method read value of oidColumnName parameter
 java.lang.String getOidDbType()
          This method read value from parameter
 boolean getReadingOrderRelevant()
          This method read value of bReadingOrderRelevant parameter
 boolean getRequiredUser()
          This method read value of bRequiredUser parameter
 boolean getRowCountEnabled()
          This method read value of bRowCountEnabled parameter
 boolean getSetCursorNameEnabled()
          This method read value of bSetCursorNameEnabled parameter
 boolean getSetEmptyStringAsNull()
          This method read value of bSetEmptyStringAsNull parameter
 boolean getSetFetchSizeEnabled()
          This method read value of bSetFetchSizeEnabled parameter
 java.lang.String getVendorFileName()
          This method read value of strVendorFileName parameter
 java.lang.String getVersionColumnName()
          This method read value of versionColumnName parameter
 java.lang.String getVersionDbType()
          This method read value from parameter
 boolean isBinaryObject(java.lang.String s)
          Method isNumber is used for checking column type.
 boolean isDate(java.lang.String s)
          Method isDate is used for checking column type.
 boolean isNumber(java.lang.String s)
          Method isNumber is used for checking column type.
 boolean isWithN(java.lang.String s)
          Method isWithN is used for checking column type.
 void readConfigValues(java.lang.String dbVendor, java.lang.String driverName, java.lang.String strType)
          Method readConfigValues read specific values for desired database(dbVendor) and puts them into global variables.
 void setConfJarStructure(java.lang.String confJarStructure)
          This method set value of confJarStructure parameter
 void setLogger(Logger logger)
          This method set value of echo parameter
 void setVendorFileName(java.lang.String fileName)
          This method set value of strVendorFileName parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SPACE_ESCAPE

public static final java.lang.String SPACE_ESCAPE
See Also:
Constant Field Values
Constructor Detail

ConfigReader

public ConfigReader()
Method Detail

readConfigValues

public void readConfigValues(java.lang.String dbVendor,
                             java.lang.String driverName,
                             java.lang.String strType)
                      throws LoaderException
Method readConfigValues read specific values for desired database(dbVendor) and puts them into global variables. Third parameter in this method describes which database is analysed (target or source) Method reads values from Loader.conf configuration file (XML format).

Parameters:
dbVendor - - String - type of source database (table);
strType - - String - type of Loader database (source or target);
driverName - is name of the driver
Throws:
LoaderException

getJavaTypeMapings

public java.util.Hashtable getJavaTypeMapings()
This method read value of javaTypeMapp parameter

Returns:
value of javaTypeMapp attribute.

getIsNumberMapp

public java.util.Hashtable getIsNumberMapp()
This method read value of isNumberMapp parameter

Returns:
value of javaTypeMapp attribute.

isNumber

public boolean isNumber(java.lang.String s)
                 throws LoaderException
Method isNumber is used for checking column type.

Parameters:
s - String that represents column type.
Returns:
true if it is numeric and false if it is not.
Throws:
LoaderException

isBinaryObject

public boolean isBinaryObject(java.lang.String s)
                       throws LoaderException
Method isNumber is used for checking column type.

Parameters:
s - String that represents column type.
Returns:
true if it is numeric and false if it is not.
Throws:
LoaderException

isDate

public boolean isDate(java.lang.String s)
               throws LoaderException
Method isDate is used for checking column type.

Parameters:
s - String that represents column type.
Returns:
true if it is numeric and false if it is not.
Throws:
LoaderException

isWithN

public boolean isWithN(java.lang.String s)
                throws LoaderException
Method isWithN is used for checking column type.

Parameters:
s - String that represents column type.
Returns:
true if it is numeric and false if it is not.
Throws:
LoaderException

getColumnsSupported

public boolean getColumnsSupported()
This method read value of bGetColumnsSupported parameter

Returns:
value of bGetColumnsSupported attribute.

getMaxRowsSupported

public boolean getMaxRowsSupported()
This method read value of bSetMaxRowsSupported parameter

Returns:
value of bSetMaxRowsSupported attribute.

getOidColumnName

public java.lang.String getOidColumnName()
This method read value of oidColumnName parameter

Returns:
value of oidColumnName attribute.

getVersionColumnName

public java.lang.String getVersionColumnName()
This method read value of versionColumnName parameter

Returns:
value of versionColumnName attribute.

getConnectionPrefix

public java.lang.String getConnectionPrefix()
This method read value of bConnectionPrefix parameter

Returns:
value of bConnectionPrefix attribute.

getReadingOrderRelevant

public boolean getReadingOrderRelevant()
This method read value of bReadingOrderRelevant parameter

Returns:
value of bReadingOrderRelevant attribute.

getSetEmptyStringAsNull

public boolean getSetEmptyStringAsNull()
This method read value of bSetEmptyStringAsNull parameter

Returns:
value of bSetEmptyStringAsNull attribute.

getSetCursorNameEnabled

public boolean getSetCursorNameEnabled()
This method read value of bSetCursorNameEnabled parameter

Returns:
value of bSetCursorNameEnabled attribute.

getSetFetchSizeEnabled

public boolean getSetFetchSizeEnabled()
This method read value of bSetFetchSizeEnabled parameter

Returns:
value of bSetFetchSizeEnabled attribute.

getRowCountEnabled

public boolean getRowCountEnabled()
This method read value of bRowCountEnabled parameter

Returns:
value of bRowCountEnabled attribute.

getEnableOrderBy

public boolean getEnableOrderBy()
This method read value of bEnableOrderBy parameter

Returns:
value of EnableOrderBy attribute.

getAfterLastRow

public boolean getAfterLastRow()
This method read value of bAfterLastRow parameter

Returns:
value of AfterLastRow attribute.

getFileSystemDatabase

public boolean getFileSystemDatabase()
This method read value of bFileSystemDatabase parameter

Returns:
value of bFileSystemDatabase attribute.

getEnableJumpResult

public boolean getEnableJumpResult()
This method read value of bEnableJumpResult parameter

Returns:
value of EnableJumpResult attribute.

getRequiredUser

public boolean getRequiredUser()
This method read value of bRequiredUser parameter

Returns:
value of RequiredUser attribute.

getFirstColumnResult

public int getFirstColumnResult()
This method read value of iFirstColumnResult parameter

Returns:
value of FirstColumnResult attribute.

getDriverClassName

public java.lang.String getDriverClassName()
This method read value of strDriverClassName parameter

Returns:
value of SourceDriverClassName attribute.

getVendorFileName

public java.lang.String getVendorFileName()
This method read value of strVendorFileName parameter

Returns:
value of VendorFileName attribute.

setVendorFileName

public void setVendorFileName(java.lang.String fileName)
This method set value of strVendorFileName parameter

Parameters:
fileName - set dbVendorFileName which is used for reading separated database conf files.

setLogger

public void setLogger(Logger logger)
This method set value of echo parameter

Parameters:
logger - set Logger which is used for log file.

getOidDbType

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

Returns:
value of parameter

getVersionDbType

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

Returns:
value of parameter

getDateFormat

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

Returns:
value of parameter

setConfJarStructure

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

Parameters:
confJarStructure - is value of parameter


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