ibspan.ecap.merchant.shopdecisions.dataadministration
Class WholesalerProcessor

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

public class WholesalerProcessor
extends java.lang.Object

A class responsible for handling and staging the wholesaler dimension.

Author:
Micha³ Drozdowicz

Constructor Summary
WholesalerProcessor(DataModificationService svc)
          Instantiates a new wholesaler processor.
 
Method Summary
 int retrieveWholesalerKey(java.lang.String wholesalerId)
          Retrieves wholesaler key.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WholesalerProcessor

public WholesalerProcessor(DataModificationService svc)
Instantiates a new wholesaler processor.

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

retrieveWholesalerKey

public int retrieveWholesalerKey(java.lang.String wholesalerId)
                          throws java.sql.SQLException
Retrieves wholesaler key.

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