Java Doc for DataCleaning.java in  » Database-JDBC-Connection-Pool » octopus » org » webdocwf » util » loader » 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 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.webdocwf.util.loader.DataCleaning

DataCleaning
public class DataCleaning (Code)
DataCleaning class contain method for executing data cleaning process
author:
   Radoslav Dutina
version:
   1.0



Constructor Summary
public  DataCleaning(ConfigReader configReader)
     Constructor of DataCleaning class, without parameters.

Method Summary
public  voidcleaningColumnValues(String tableName, String columnName, String replacement, int rowNumber, Connection conn, String typeOfInsert, String importDefinitionName)
    
public  voidcleaningInsert(String tableName, Connection conn, int rowNumber, String typeOfInsert, String msg, String importDefinitionName, String logFailedStatement)
    
public  StringcleaningRelationValues(String tableName, String columnName, String replacement, String dataType, int rowNumber, Connection conn, String typeOfInsert, int currentVersion, boolean oid, String importDefinitionName, String versionColumnName, String logFailedStatement)
    
public  voidcutingDataLenght(String tableName, Connection conn, String strQuery, int rowNumber, String onErrorContinue, String msg, String importDefinitionName, String logFailedStatement)
    
public  voidcutingDataLenghtUpdate(String tableName, Connection conn, String strQuery, int rowNumber, String update, String onErrorContinue, String importDefinitionName, String logFailedStatement)
    
public  StringgetLogColumnName()
    
public  StringgetLogFailedStatement()
    
public  StringgetLogImportDefinitionName()
    
public  StringgetLogNewValue()
    
public  StringgetLogOperationName()
    
public  StringgetLogOriginalValue()
    
public  StringgetLogRowNumber()
    
public  StringgetLogTable()
    
public  StringgetLogTableName()
    
public  StringgetLogTime()
    
public  StringgetLogTypeName()
    
public  voidsetLogColumnName(String logColumnName)
    
public  voidsetLogImportDefinitionName(String logImportDefinitionName)
    
public  voidsetLogNewValue(String logNewValue)
    
public  voidsetLogOperationName(String logOperationName)
    
public  voidsetLogOriginalValue(String logOriginalValue)
    
public  voidsetLogPrimaryKeyValue(String string)
    
public  voidsetLogRowNumber(String logRowNumber)
    
public  voidsetLogTable(String logTable)
    
public  voidsetLogTableName(String logTableName)
    
public  voidsetLogTime(String string)
    
public  voidsetLogTypeName(String logTypeName)
    
public  voidsetLogger(Logger logger)
    


Constructor Detail
DataCleaning
public DataCleaning(ConfigReader configReader)(Code)
Constructor of DataCleaning class, without parameters.




Method Detail
cleaningColumnValues
public void cleaningColumnValues(String tableName, String columnName, String replacement, int rowNumber, Connection conn, String typeOfInsert, String importDefinitionName)(Code)
This method write message in to log table if some data in sql statements has value
Parameters:
  tableName - is name of the table which is in the process
Parameters:
  columnName - is the name of column in current table
Parameters:
  replacement - is new value of data
Parameters:
  rowNumber - is current row number
Parameters:
  conn - is connection to target database (table)
Parameters:
  typeOfInsert - is the parameter which may be 'insert' or 'update'
Parameters:
  importDefinitionName - is name of the import definition job



cleaningInsert
public void cleaningInsert(String tableName, Connection conn, int rowNumber, String typeOfInsert, String msg, String importDefinitionName, String logFailedStatement)(Code)
This method write message in to log table if insert/update fails
Parameters:
  tableName - is name of the table which is in the process
Parameters:
  conn - is connection to target database (table)
Parameters:
  rowNumber - is current row number
Parameters:
  typeOfInsert - is the parameter which may be 'insert' or 'update'
Parameters:
  msg - is error message
Parameters:
  importDefinitionName - is name of the import definition job



cleaningRelationValues
public String cleaningRelationValues(String tableName, String columnName, String replacement, String dataType, int rowNumber, Connection conn, String typeOfInsert, int currentVersion, boolean oid, String importDefinitionName, String versionColumnName, String logFailedStatement) throws LoaderException(Code)
This method write message in to log table if relations between table faild to insert/update
Parameters:
  tableName - is name of the table which is in the process
Parameters:
  columnName - is the name of column in current table
Parameters:
  replacement - is new value of data
Parameters:
  dataType - is type of relation column
Parameters:
  rowNumber - is current row number
Parameters:
  conn - is connection to target database (table)
Parameters:
  typeOfInsert - represents type of operation (insert or update)
Parameters:
  currentVersion - represents update version
Parameters:
  oid - define if the oid logic is present
Parameters:
  importDefinitionName - is name of the import definition job value of parameter



cutingDataLenght
public void cutingDataLenght(String tableName, Connection conn, String strQuery, int rowNumber, String onErrorContinue, String msg, String importDefinitionName, String logFailedStatement) throws SQLException(Code)
This method write message in to log table if some data must be truncated
Parameters:
  tableName - is name of the table which is in the process
Parameters:
  conn - is connection to target database (table)
Parameters:
  strQuery - is string represented sql statement
Parameters:
  rowNumber - is current row number
Parameters:
  onErrorContinue - represents onErrorContinue tag
Parameters:
  msg - represents error message
Parameters:
  importDefinitionName - is name of the import definition job
throws:
  SQLException -



cutingDataLenghtUpdate
public void cutingDataLenghtUpdate(String tableName, Connection conn, String strQuery, int rowNumber, String update, String onErrorContinue, String importDefinitionName, String logFailedStatement) throws SQLException, LoaderException(Code)
This method write message in to log table if some data must be truncated
Parameters:
  tableName - is name of the table which is in the process
Parameters:
  conn - is connection to target database (table)
Parameters:
  strQuery - is string representing sql statement
Parameters:
  rowNumber - is current row number
Parameters:
  update - is the parameter which may be 'insert' or 'update'
Parameters:
  onErrorContinue - is value of onErrorContinue attribute
Parameters:
  importDefinitionName - is name of the import definition job
throws:
  SQLException -



getLogColumnName
public String getLogColumnName()(Code)
This method read value from parameter logColumnName value of parameter



getLogFailedStatement
public String getLogFailedStatement()(Code)
This method returns value of primary key for column which data wasn't succesufuly loaded String value which is value of primary key for column



getLogImportDefinitionName
public String getLogImportDefinitionName()(Code)
This method read value from parameter logImportDefinitionName value of parameter



getLogNewValue
public String getLogNewValue()(Code)
This method read value from parameter logNewValue value of parameter



getLogOperationName
public String getLogOperationName()(Code)
This method read value from parameter logImportDefinitionName value of parameter



getLogOriginalValue
public String getLogOriginalValue()(Code)
This method read value from parameter logOriginalValue value of parameter



getLogRowNumber
public String getLogRowNumber()(Code)
This method read value from parameter logRowNumber value of parameter



getLogTable
public String getLogTable()(Code)
This method read value from parameter logTable value of parameter



getLogTableName
public String getLogTableName()(Code)
This method read value from parameter logTableName value of parameter



getLogTime
public String getLogTime()(Code)
This method returns time when log was occured String value which is time when log is inserted in table



getLogTypeName
public String getLogTypeName()(Code)
This method read value from parameter logTypeName value of parameter



setLogColumnName
public void setLogColumnName(String logColumnName)(Code)
This method set the value of parameter logColumnName
Parameters:
  logColumnName - is value of parmeter



setLogImportDefinitionName
public void setLogImportDefinitionName(String logImportDefinitionName)(Code)
This method set the value of parameter logImportDefinitionName
Parameters:
  logImportDefinitionName - is value of parameter



setLogNewValue
public void setLogNewValue(String logNewValue)(Code)
This method set the value of parameter logNewValue
Parameters:
  logNewValue - is value of parameter



setLogOperationName
public void setLogOperationName(String logOperationName)(Code)
This method set the value of parameter logOperationName
Parameters:
  logOperationName - is value of parameter



setLogOriginalValue
public void setLogOriginalValue(String logOriginalValue)(Code)
This method set the value of parameter logOriginalValue
Parameters:
  logOriginalValue - is value of parameter



setLogPrimaryKeyValue
public void setLogPrimaryKeyValue(String string)(Code)
This method set value of primary key for column which data wasn't succesufuly loaded
Parameters:
  String - primary key



setLogRowNumber
public void setLogRowNumber(String logRowNumber)(Code)
This method set the value of parameter logRowNumber
Parameters:
  logRowNumber - is value of parameter



setLogTable
public void setLogTable(String logTable)(Code)
This method set the value of parameter logTable
Parameters:
  logTable - is value of parameter



setLogTableName
public void setLogTableName(String logTableName)(Code)
This method set the value of parameter logTableName
Parameters:
  logTableName - is value of parameter



setLogTime
public void setLogTime(String string)(Code)
This method set time when log was occured
Parameters:
  String - time



setLogTypeName
public void setLogTypeName(String logTypeName)(Code)
This method set the value of parameter logTypeName
Parameters:
  logTypeName - is value of parameter



setLogger
public void setLogger(Logger logger)(Code)
Set Logger object
Parameters:
  logger - Logger object which is used for log file



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.