ibspan.ecap.merchant.shopdecisions.dataadministration
Class ProductProcessor

java.lang.Object
  extended by ibspan.ecap.merchant.shopdecisions.dataadministration.ProductProcessor

public class ProductProcessor
extends java.lang.Object

A class responsible for handling and staging the product dimension.

Author:
Micha³ Drozdowicz

Constructor Summary
ProductProcessor(DataModificationService svc)
          Instantiates a new product processor.
 
Method Summary
 int retrieveProductKey(java.lang.String productId)
          Retrieve product key.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProductProcessor

public ProductProcessor(DataModificationService svc)
Instantiates a new product processor.

Parameters:
svc - the DataModificationService to use to access the database
Method Detail

retrieveProductKey

public int retrieveProductKey(java.lang.String productId)
                       throws java.sql.SQLException
Retrieve product key.

Parameters:
productId - the id of the product, the key of which is to be retrieved.
Returns:
the the key of the product
Throws:
java.sql.SQLException - the SQL exception