|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.webdocwf.util.loader.DataCleaning
DataCleaning class contain method for executing data cleaning process
Constructor Summary | |
DataCleaning(ConfigReader configReader)
Constructor of DataCleaning class, without parameters. |
Method Summary | |
void |
cleaningColumnValues(java.lang.String tableName,
java.lang.String columnName,
java.lang.String replacement,
int rowNumber,
java.sql.Connection conn,
java.lang.String typeOfInsert,
java.lang.String importDefinitionName)
This method write message in to log table if some data in sql statements has value |
void |
cleaningInsert(java.lang.String tableName,
java.sql.Connection conn,
int rowNumber,
java.lang.String typeOfInsert,
java.lang.String msg,
java.lang.String importDefinitionName,
java.lang.String logFailedStatement)
This method write message in to log table if insert/update fails |
java.lang.String |
cleaningRelationValues(java.lang.String tableName,
java.lang.String columnName,
java.lang.String replacement,
java.lang.String dataType,
int rowNumber,
java.sql.Connection conn,
java.lang.String typeOfInsert,
int currentVersion,
boolean oid,
java.lang.String importDefinitionName,
java.lang.String versionColumnName,
java.lang.String logFailedStatement)
This method write message in to log table if relations between table faild to insert/update |
void |
cutingDataLenght(java.lang.String tableName,
java.sql.Connection conn,
java.lang.String strQuery,
int rowNumber,
java.lang.String onErrorContinue,
java.lang.String msg,
java.lang.String importDefinitionName,
java.lang.String logFailedStatement)
This method write message in to log table if some data must be truncated |
void |
cutingDataLenghtUpdate(java.lang.String tableName,
java.sql.Connection conn,
java.lang.String strQuery,
int rowNumber,
java.lang.String update,
java.lang.String onErrorContinue,
java.lang.String importDefinitionName,
java.lang.String logFailedStatement)
This method write message in to log table if some data must be truncated |
java.lang.String |
getLogColumnName()
This method read value from parameter logColumnName |
java.lang.String |
getLogFailedStatement()
This method returns value of primary key for column which data wasn't succesufuly loaded |
java.lang.String |
getLogImportDefinitionName()
This method read value from parameter logImportDefinitionName |
java.lang.String |
getLogNewValue()
This method read value from parameter logNewValue |
java.lang.String |
getLogOperationName()
This method read value from parameter logImportDefinitionName |
java.lang.String |
getLogOriginalValue()
This method read value from parameter logOriginalValue |
java.lang.String |
getLogRowNumber()
This method read value from parameter logRowNumber |
java.lang.String |
getLogTable()
This method read value from parameter logTable |
java.lang.String |
getLogTableName()
This method read value from parameter logTableName |
java.lang.String |
getLogTime()
This method returns time when log was occured |
java.lang.String |
getLogTypeName()
This method read value from parameter logTypeName |
void |
setLogColumnName(java.lang.String logColumnName)
This method set the value of parameter logColumnName |
void |
setLogger(Logger logger)
Set Logger object |
void |
setLogImportDefinitionName(java.lang.String logImportDefinitionName)
This method set the value of parameter logImportDefinitionName |
void |
setLogNewValue(java.lang.String logNewValue)
This method set the value of parameter logNewValue |
void |
setLogOperationName(java.lang.String logOperationName)
This method set the value of parameter logOperationName |
void |
setLogOriginalValue(java.lang.String logOriginalValue)
This method set the value of parameter logOriginalValue |
void |
setLogPrimaryKeyValue(java.lang.String string)
This method set value of primary key for column which data wasn't succesufuly loaded |
void |
setLogRowNumber(java.lang.String logRowNumber)
This method set the value of parameter logRowNumber |
void |
setLogTable(java.lang.String logTable)
This method set the value of parameter logTable |
void |
setLogTableName(java.lang.String logTableName)
This method set the value of parameter logTableName |
void |
setLogTime(java.lang.String string)
This method set time when log was occured |
void |
setLogTypeName(java.lang.String logTypeName)
This method set the value of parameter logTypeName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DataCleaning(ConfigReader configReader)
Method Detail |
public void setLogTableName(java.lang.String logTableName)
logTableName
- is value of parameterpublic void setLogTable(java.lang.String logTable)
logTable
- is value of parameterpublic void setLogColumnName(java.lang.String logColumnName)
logColumnName
- is value of parmeterpublic void setLogRowNumber(java.lang.String logRowNumber)
logRowNumber
- is value of parameterpublic void setLogOriginalValue(java.lang.String logOriginalValue)
logOriginalValue
- is value of parameterpublic void setLogNewValue(java.lang.String logNewValue)
logNewValue
- is value of parameterpublic void setLogImportDefinitionName(java.lang.String logImportDefinitionName)
logImportDefinitionName
- is value of parameterpublic void setLogOperationName(java.lang.String logOperationName)
logOperationName
- is value of parameterpublic void setLogTypeName(java.lang.String logTypeName)
logTypeName
- is value of parameterpublic java.lang.String getLogTableName()
public java.lang.String getLogTable()
public java.lang.String getLogColumnName()
public java.lang.String getLogRowNumber()
public java.lang.String getLogOriginalValue()
public java.lang.String getLogNewValue()
public java.lang.String getLogImportDefinitionName()
public java.lang.String getLogOperationName()
public java.lang.String getLogTypeName()
public void cleaningInsert(java.lang.String tableName, java.sql.Connection conn, int rowNumber, java.lang.String typeOfInsert, java.lang.String msg, java.lang.String importDefinitionName, java.lang.String logFailedStatement)
tableName
- is name of the table which is in the processconn
- is connection to target database (table)rowNumber
- is current row numbertypeOfInsert
- is the parameter which may be 'insert' or 'update'msg
- is error messageimportDefinitionName
- is name of the import definition jobpublic void cleaningColumnValues(java.lang.String tableName, java.lang.String columnName, java.lang.String replacement, int rowNumber, java.sql.Connection conn, java.lang.String typeOfInsert, java.lang.String importDefinitionName)
tableName
- is name of the table which is in the processcolumnName
- is the name of column in current tablereplacement
- is new value of datarowNumber
- is current row numberconn
- is connection to target database (table)typeOfInsert
- is the parameter which may be 'insert' or 'update'importDefinitionName
- is name of the import definition jobpublic java.lang.String cleaningRelationValues(java.lang.String tableName, java.lang.String columnName, java.lang.String replacement, java.lang.String dataType, int rowNumber, java.sql.Connection conn, java.lang.String typeOfInsert, int currentVersion, boolean oid, java.lang.String importDefinitionName, java.lang.String versionColumnName, java.lang.String logFailedStatement) throws LoaderException
tableName
- is name of the table which is in the processcolumnName
- is the name of column in current tablereplacement
- is new value of datadataType
- is type of relation columnrowNumber
- is current row numberconn
- is connection to target database (table)typeOfInsert
- represents type of operation (insert or update)currentVersion
- represents update versionoid
- define if the oid logic is presentimportDefinitionName
- is name of the import definition job
LoaderException
public void cutingDataLenghtUpdate(java.lang.String tableName, java.sql.Connection conn, java.lang.String strQuery, int rowNumber, java.lang.String update, java.lang.String onErrorContinue, java.lang.String importDefinitionName, java.lang.String logFailedStatement) throws java.sql.SQLException, LoaderException
tableName
- is name of the table which is in the processconn
- is connection to target database (table)strQuery
- is string representing sql statementrowNumber
- is current row numberupdate
- is the parameter which may be 'insert' or 'update'onErrorContinue
- is value of onErrorContinue attributeimportDefinitionName
- is name of the import definition job
java.sql.SQLException
LoaderException
public void cutingDataLenght(java.lang.String tableName, java.sql.Connection conn, java.lang.String strQuery, int rowNumber, java.lang.String onErrorContinue, java.lang.String msg, java.lang.String importDefinitionName, java.lang.String logFailedStatement) throws java.sql.SQLException
tableName
- is name of the table which is in the processconn
- is connection to target database (table)strQuery
- is string represented sql statementrowNumber
- is current row numberonErrorContinue
- represents onErrorContinue tagmsg
- represents error messageimportDefinitionName
- is name of the import definition job
java.sql.SQLException
public void setLogger(Logger logger)
logger
- Logger object which is used for log filepublic void setLogPrimaryKeyValue(java.lang.String string)
public void setLogTime(java.lang.String string)
public java.lang.String getLogFailedStatement()
public java.lang.String getLogTime()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |