ibspan.ecap.merchant.shopdecisions.dataadministration
Class DateProcessor

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

public class DateProcessor
extends java.lang.Object

A class responsible for handling and staging the date dimension.

Author:
Micha³ Drozdowicz

Constructor Summary
DateProcessor(DataModificationService service)
          Instantiates a new date processor.
 
Method Summary
 int retrieveDateKey(java.util.Date date)
          Retrieve date key.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateProcessor

public DateProcessor(DataModificationService service)
Instantiates a new date processor.

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

retrieveDateKey

public int retrieveDateKey(java.util.Date date)
                    throws java.sql.SQLException
Retrieve date key.

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