ibspan.ecap.merchant.shopdecisions.dataadministration
Class TimeProcessor

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

public class TimeProcessor
extends java.lang.Object

A class responsible for handling and staging the time dimension.

Author:
Micha³ Drozdowicz

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

Constructor Detail

TimeProcessor

public TimeProcessor(DataModificationService service)
Instantiates a new time processor.

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

retrieveTimeKey

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

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