org.webdocwf.util.loader.transformation
Class ReplaceData

java.lang.Object
  extended by org.webdocwf.util.loader.transformation.ReplaceData
All Implemented Interfaces:
Transformer

public class ReplaceData
extends java.lang.Object
implements Transformer

This class implements Transformer interface. It can be used to replace data from database table with values placed in property file format to another Date: 23.07.2004.

Version:
1.0
Author:
Zeljko Kovacevic

Constructor Summary
ReplaceData()
           
 
Method Summary
 void configure(java.lang.String filePath)
          This method reads path to property file which is used for replacing data Keys from property file are values from table, and values from property file are new values which will be placed instead of old ones.
 void release()
          This method release resources
 java.util.List transformValue(java.util.List valueToTransform)
          This method will change old values from table with new ones from property file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplaceData

public ReplaceData()
Method Detail

configure

public void configure(java.lang.String filePath)
               throws java.lang.Exception
This method reads path to property file which is used for replacing data Keys from property file are values from table, and values from property file are new values which will be placed instead of old ones.

Specified by:
configure in interface Transformer
Parameters:
filePath - Path to property file
Throws:
java.lang.Exception

release

public void release()
             throws java.lang.Exception
This method release resources

Specified by:
release in interface Transformer
Throws:
java.lang.Exception

transformValue

public java.util.List transformValue(java.util.List valueToTransform)
                              throws java.lang.Exception
This method will change old values from table with new ones from property file

Specified by:
transformValue in interface Transformer
Parameters:
valueToTransform - List for transformation
Returns:
List with transformed values
Throws:
java.lang.Exception


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