Creating custom column handlers
Create a custom column handler so
that the Data Load utility can resolve data and load the data into
database columns. Create a custom column handler to resolve the data
that cannot be mapped to a column value through the data load configuration.For example, if you input data to populate the password
column in the database with a clear text password. If the password
column expects an encrypted value, create a custom column handler
to encrypt the clear text password. The handled can then return an
encrypted password from the
resolveColumnValue()
method.Before you begin
Ensure that you understand the following information:
- The API for the com.ibm.commerce.foundation.dataload.config.AbstractColumnHandler abstract class.
- The API for the com.ibm.commerce.foundation.dataload.config.ColumnHandler interface.
About this task
Procedure
What to do next
- Package your custom column handler class in the WebSphereCommerceServerExtensionsLogic project to a JAR file.
- Create the WC_installdir\ext\lib directory if it does not exist, and copy the JAR file to the WC_installdir\ext\lib directory. You must place your custom JAR files in this directory.
- Copy all of the custom data load configuration files from WCDE_installdir\samples\DataLoad (WebSphere Commerce development environment) to WC_installdir\samples\DataLoad (WebSphere Commerce server environment).
- Run the Data Load utility to load data with your custom data load configuration files to the WebSphere Commerce database.